An error occurred while loading the file. Please try again.
-
Никита Ульяницкий authored85bc33ac
This GitLab CI configuration is valid.
Learn more
.gitlab-ci.yml 827 B
stages:
- build
- deploy
variables:
CI_REGISTRY_USER: nulldock
CI_REGISTRY_PASSWORD: L9S5:xa4!
CI_REGISTRY: index.docker.io
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
IMAGE_TAG: nulldock/documentation:monolith
services:
- docker:dind
build:
stage: build
script:
- - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
tags:
- null-dev
deploy:
stage: deploy
image: bitnami/kubectl:latest
script:
- echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
- export KUBECONFIG=/tmp/kubeconfig
- kubectl apply -f k8s/deployment.yaml
- kubectl apply -f k8s/service.yaml
- kubectl apply -f k8s/ingress.yaml
tags:
- null-dev
environment:
name: development
url: http://volume.nulianitskiy.ru