Skip to content
Snippets Groups Projects
Commit ba6f559d authored by Homar Franquesa Agil's avatar Homar Franquesa Agil
Browse files

Update .gitlab-ci.yaml

parent a54f3018
No related branches found
No related tags found
No related merge requests found
Pipeline #27504 canceled
docker-build:
# Official docker image.
image: docker:latest
stage: build
services:
......@@ -9,9 +8,6 @@ docker-build:
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE":"$CI_COMMIT_SHA" .
- docker push "$CI_REGISTRY_IMAGE"
variables:
DOCKER_HOST: tcp://localhost:2375
DOCKER_TLS_CERTDIR: ""
only:
- master
......@@ -19,7 +15,6 @@ deploy-master:
stage: deploy
image: bitnami/kubectl
script:
- kubectl get deployment hola-mundo || kubectl create deployment hola-mundo --image="$CI_REGISTRY_IMAGE":"$CI_COMMIT_SHA"
- kubectl set image deployment/hola-mundo hola-mundo="$CI_REGISTRY_IMAGE":"$CI_COMMIT_SHA"
- helm upgrade nestapp ./charts --install --values=./charts/values.yaml --namespace default
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment