Commit 28774953 authored by Matija Obreza's avatar Matija Obreza

Using `production-*` tag to deploy to production

- production tags are not deployed for review
parent 62cb429c
Pipeline #4195 passed with stages
in 5 minutes 13 seconds
......@@ -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
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