Commit 3f245f83 authored by Matija Obreza's avatar Matija Obreza
Browse files

Deployment to production only from production branch

parent 8c35180b
......@@ -13,6 +13,7 @@ compile and test:
image: dockerhub.croptrust.org/docker/custom/maven-with-compass:latest
except:
- master
- production
- tags
script:
- MAVEN_OPTS="${MAVEN_OPTS} -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" mvn compile test -B
......@@ -32,6 +33,7 @@ package genesys:
stage: package
only:
- master
- production
- tags
package genesys branch:
......@@ -41,6 +43,7 @@ package genesys branch:
allow_failure: false
except:
- master
- production
- tags
......@@ -81,6 +84,7 @@ dockerize genesys:
- package genesys
only:
- master
- production
- tags
dockerize genesys branch:
......@@ -92,12 +96,16 @@ dockerize genesys branch:
allow_failure: false
except:
- master
- production
- tags
deploy for review:
stage: deploy
image: docker:latest
except:
- master
- production
when: manual
allow_failure: false
environment:
......@@ -130,6 +138,9 @@ deploy for review:
remove review instance:
stage: deploy
image: docker:latest
except:
- master
- production
when: manual
variables:
GIT_STRATEGY: none
......@@ -179,6 +190,8 @@ deploy on staging server:
deploy to production:
stage: deploy
image: docker:latest
only:
- 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