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
Genesys PGR
Genesys Backend
Commits
28774953
Commit
28774953
authored
Dec 23, 2017
by
Matija Obreza
Browse files
Using `production-*` tag to deploy to production
- production tags are not deployed for review
parent
62cb429c
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
28774953
...
...
@@ -36,7 +36,6 @@ package genesys:
stage
:
package
only
:
-
master
-
production
-
tags
package genesys branch
:
...
...
@@ -46,7 +45,6 @@ package genesys branch:
allow_failure
:
false
except
:
-
master
-
production
-
tags
...
...
@@ -85,7 +83,6 @@ dockerize genesys:
-
package genesys
only
:
-
master
-
production
-
tags
dockerize genesys branch
:
...
...
@@ -97,7 +94,6 @@ dockerize genesys branch:
allow_failure
:
false
except
:
-
master
-
production
-
tags
...
...
@@ -106,7 +102,7 @@ deploy for review:
image
:
docker:${DOCKER_VERSION}
except
:
-
master
-
production
-
/^
production
-.*/
# when: manual
allow_failure
:
false
environment
:
...
...
@@ -142,7 +138,7 @@ remove review instance:
image
:
docker:${DOCKER_VERSION}
except
:
-
master
-
production
-
/^
production
-.*/
when
:
manual
variables
:
GIT_STRATEGY
:
none
...
...
@@ -193,7 +189,7 @@ deploy to production:
stage
:
deploy
image
:
docker:latest
only
:
-
production
-
/^
production
-.*/
when
:
manual
variables
:
GIT_STRATEGY
:
none
...
...
@@ -210,9 +206,9 @@ deploy to production:
-
export DOCKER_CERT_PATH=${TLS_PATH}
-
DOCKER_CMD=docker
# Actions
-
${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:${GENESYS_VERSION}-
production
genesys_server
-
${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:${GENESYS_VERSION}-
${CI_COMMIT_REF_SLUG}
genesys_server
-
sleep
180
-
${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:${GENESYS_VERSION}-
production
genesys_standby
-
${DOCKER_CMD} service update --image ${CI_REGISTRY_IMAGE}:${GENESYS_VERSION}-
${CI_COMMIT_REF_SLUG}
genesys_standby
environment
:
name
:
production
url
:
https://www.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