Commit 3c7a33a8 authored by Matija Obreza's avatar Matija Obreza Committed by Maksym Tishchenko
Browse files

CI: Deploy a branch to staging environment

parent 85127cd7
......@@ -113,6 +113,30 @@ tag edge gg-ce-web image:
- ${DOCKER_CMD} push ${REGISTRY_IMAGE}:edge
- ${DOCKER_CMD} logout $CI_REGISTRY
deploy branch to staging.ggce.genesys-pgr.org:
stage: deploy
<<: *docker_setup
variables:
GIT_STRATEGY: none
dependencies:
- dockerize gg-ce-web
rules:
- if: '$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
when: manual
allow_failure: true
script:
# Address the swarm
- export DOCKER_HOST=swarm.genesys-pgr.org
# Actions
- export REGISTRY_IMAGE="${CI_REGISTRY_IMAGE}/${UI_EXPRESS_IMAGE_NAME}"
- echo "Deploying ${REGISTRY_IMAGE}:${IMAGE_TAG} to https://staging.ggce.genesys-pgr.org"
- ${DOCKER_CMD} service update --image ${REGISTRY_IMAGE}:${IMAGE_TAG} ggce-staging_web
environment:
name: GG-CE Staging
url: https://staging.ggce.genesys-pgr.org
deploy to staging.ggce.genesys-pgr.org:
stage: deploy
<<: *docker_setup
......
Supports Markdown
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