Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GGCE
GGCE Web
Commits
fede45a6
Commit
fede45a6
authored
Apr 28, 2022
by
Matija Obreza
Browse files
CI: Deploy main branch to staging server, do not upgrade demo instance automatically
parent
df0adb64
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fede45a6
...
...
@@ -113,7 +113,7 @@ tag edge gg-ce-web image:
-
${DOCKER_CMD} push ${REGISTRY_IMAGE}:edge
-
${DOCKER_CMD} logout $CI_REGISTRY
deploy to
demo
.ggce.gene
banks
.org
:
deploy to
staging
.ggce.gene
sys-pgr
.org
:
stage
:
deploy
<<
:
*docker_setup
variables
:
...
...
@@ -129,8 +129,30 @@ deploy to demo.ggce.genebanks.org:
-
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.gene
banks
.org"
-
${DOCKER_CMD} service update --image ${REGISTRY_IMAGE}:edge ggce-
demo
_web
-
echo "Deploying ${REGISTRY_IMAGE}:edge to https://
staging
.ggce.gene
sys-pgr
.org"
-
${DOCKER_CMD} service update --image ${REGISTRY_IMAGE}:edge ggce-
staging
_web
environment
:
name
:
GG-CE Web Demo
url
:
https://demo.ggce.genebanks.org
name
:
GG-CE Staging
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment