Commit 092ec78a authored by Matija Obreza's avatar Matija Obreza

Gitlab CI: deploy production-* tags to production instance

parent 40997de8
...@@ -35,14 +35,14 @@ stages: ...@@ -35,14 +35,14 @@ stages:
paths: paths:
- amphibian-server/target/*.war - amphibian-server/target/*.war
package genesys: package amphibian:
<<: *maven_package <<: *maven_package
stage: package stage: package
only: only:
- master - master
- tags - tags
package genesys branch: package amphibian branch:
<<: *maven_package <<: *maven_package
stage: package stage: package
# when: manual # when: manual
...@@ -75,14 +75,15 @@ package genesys branch: ...@@ -75,14 +75,15 @@ package genesys branch:
- ${DOCKER_CMD} push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} - ${DOCKER_CMD} push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
- ${DOCKER_CMD} logout $CI_REGISTRY - ${DOCKER_CMD} logout $CI_REGISTRY
dockerize genesys: dockerize amphibian:
<<: *docker_image <<: *docker_image
stage: dockerize stage: dockerize
dependencies: dependencies:
- package genesys - package amphibian
only: only:
- master - master
- /^amphibian\-/ - /^amphibian\-/
- /^production-.*/
publish snapshot artifacts: publish snapshot artifacts:
stage: deploy stage: deploy
...@@ -136,6 +137,7 @@ deploy to production: ...@@ -136,6 +137,7 @@ deploy to production:
image: docker:latest image: docker:latest
only: only:
- /^amphibian-.*/ - /^amphibian-.*/
- /^production-.*/
when: manual when: manual
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: none
......
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