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