Commit 37a0ddd4 authored by bensinober's avatar bensinober Committed by Benjamin
Browse files

DEICH-5689 gitlab.ci: rename dynamic deploy label and check if DEPLOY_HOST is set before running

DEICH-5689 gitlab.ci: make dynamic deploy separate stage so its easier to find
parent cfbc92ac
......@@ -18,6 +18,7 @@ stages:
- test
- push
- deploy-test
- deploy-dynamic
- sanity
- deploy-stage
- deploy-prod
......
......@@ -35,8 +35,8 @@ include:
when: manual
# Dynamic host test deployment, requires DEPLOY_HOST
deploy-all-test-dynamic:
stage: deploy-test
dynamic-deploy-all:
stage: deploy-dynamic
only:
variables:
- $DEPLOY_HOST != ""
......@@ -48,7 +48,7 @@ deploy-all-test-dynamic:
SSH_USER: $DEPLOY_USER
SSH_KEY: $DEPLOY_KEY
before_script:
- if [ "${DEPLOY_HOST}" == "" ] ; then echo "DEPLOY_HOST is empty!" ; exit 1 ; fi
- if [ -z ${DEPLOY_HOST+x} ] ; then echo "DEPLOY_HOST is empty!" ; exit 1 ; fi
- *before
script:
- ssh-keyscan ${DEPLOY_HOST} >> ~/.ssh/known_hosts
......@@ -64,6 +64,4 @@ deploy-all-test-dynamic:
docker-compose -f ../docker-compose.yml -f ../config/docker-compose.yml config > docker-compose.yml &&
docker-compose pull &&
docker-compose up -d ${CONTAINER}"
#after_script:
# - ./transitionIssues.sh test
when: manual
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment