Commit 237ea2fa authored by Matija Obreza's avatar Matija Obreza
Browse files

Automatically dockerize and deploy any branch if packaged

parent a2f6fe14
......@@ -92,7 +92,7 @@ dockerize genesys branch:
stage: dockerize
dependencies:
- package genesys branch
when: manual
# when: manual
allow_failure: false
except:
- master
......@@ -106,7 +106,7 @@ deploy for review:
except:
- master
- production
when: manual
# when: manual
allow_failure: false
environment:
name: review/$CI_COMMIT_REF_SLUG
......@@ -133,6 +133,7 @@ deploy for review:
- echo Deploying ${CI_REGISTRY_IMAGE}:${IMAGE_TAG} for review as https\://${CI_COMMIT_REF_SLUG}.review.genesys\-pgr.org
- envsubst < docker/review-compose-template.yml > review-composed.yml
- cat review-composed.yml
- ${DOCKER_CMD} stack rm genesys-${CI_COMMIT_REF_SLUG}-review || true
- ${DOCKER_CMD} stack deploy -c review-composed.yml genesys-${CI_COMMIT_REF_SLUG}-review
remove review instance:
......@@ -160,7 +161,7 @@ remove review instance:
- export DOCKER_CERT_PATH=${TLS_PATH}
- DOCKER_CMD=docker
# Actions
- ${DOCKER_CMD} stack rm genesys-${CI_COMMIT_REF_SLUG}-review
- ${DOCKER_CMD} stack rm genesys-${CI_COMMIT_REF_SLUG}-review || true
deploy on staging server:
stage: deploy
......
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