Commit fede45a6 authored by Matija Obreza's avatar Matija Obreza
Browse files

CI: Deploy main branch to staging server, do not upgrade demo instance automatically

parent df0adb64
...@@ -113,7 +113,7 @@ tag edge gg-ce-web image: ...@@ -113,7 +113,7 @@ tag edge gg-ce-web image:
- ${DOCKER_CMD} push ${REGISTRY_IMAGE}:edge - ${DOCKER_CMD} push ${REGISTRY_IMAGE}:edge
- ${DOCKER_CMD} logout $CI_REGISTRY - ${DOCKER_CMD} logout $CI_REGISTRY
deploy to demo.ggce.genebanks.org: deploy to staging.ggce.genesys-pgr.org:
stage: deploy stage: deploy
<<: *docker_setup <<: *docker_setup
variables: variables:
...@@ -129,8 +129,30 @@ deploy to demo.ggce.genebanks.org: ...@@ -129,8 +129,30 @@ deploy to demo.ggce.genebanks.org:
- export DOCKER_HOST=swarm.genesys-pgr.org - export DOCKER_HOST=swarm.genesys-pgr.org
# Actions # Actions
- export REGISTRY_IMAGE="${CI_REGISTRY_IMAGE}/${UI_EXPRESS_IMAGE_NAME}" - export REGISTRY_IMAGE="${CI_REGISTRY_IMAGE}/${UI_EXPRESS_IMAGE_NAME}"
- echo "Deploying ${REGISTRY_IMAGE}:edge to https://demo.ggce.genebanks.org" - echo "Deploying ${REGISTRY_IMAGE}:edge to https://staging.ggce.genesys-pgr.org"
- ${DOCKER_CMD} service update --image ${REGISTRY_IMAGE}:edge ggce-demo_web - ${DOCKER_CMD} service update --image ${REGISTRY_IMAGE}:edge ggce-staging_web
environment: environment:
name: GG-CE Web Demo name: GG-CE Staging
url: https://demo.ggce.genebanks.org url: https://staging.ggce.genesys-pgr.org
# deploy to demo.ggce.genesys-pgr.org:
# stage: deploy
# <<: *docker_setup
# variables:
# GIT_STRATEGY: none
# dependencies:
# - tag edge gg-ce-web image
# rules:
# - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
# when: manual # Manually update Demo instance
# 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}:edge to https://demo.ggce.genesys-pgr.org"
# - ${DOCKER_CMD} service update --image ${REGISTRY_IMAGE}:edge ggce-demo_web
# environment:
# name: GG-CE Web Demo
# url: https://demo.ggce.genesys-pgr.org
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