don't auto deploy

This commit is contained in:
ducoterra
2020-06-26 23:49:19 -04:00
parent 072bee6e27
commit 3faf5c9d95

View File

@@ -20,19 +20,19 @@ build:
- echo $DEPLOY
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
deploy_to_prod:
variables:
DEPLOY: prod
stage: deploy
only:
variables:
- $CI_COMMIT_TAG
image:
name: debian:10
entrypoint: [""]
script:
- apt -qq update >> /dev/null && apt -qq install -y curl >> /dev/null
- curl -L -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
- chmod +x /usr/local/bin/kubectl
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- helm template $CI_PROJECT_NAME --set tag=$CI_COMMIT_TAG --set image=$CI_REGISTRY_IMAGE ./helm | kubectl apply -f -
# deploy_to_prod:
# variables:
# DEPLOY: prod
# stage: deploy
# only:
# variables:
# - $CI_COMMIT_TAG
# image:
# name: debian:10
# entrypoint: [""]
# script:
# - apt -qq update >> /dev/null && apt -qq install -y curl >> /dev/null
# - curl -L -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
# - chmod +x /usr/local/bin/kubectl
# - curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
# - helm template $CI_PROJECT_NAME --set tag=$CI_COMMIT_TAG --set image=$CI_REGISTRY_IMAGE ./helm | kubectl apply -f -