Commit 138ca22c authored by Alicja Reniewicz's avatar Alicja Reniewicz
Browse files

deployment enabled only for particular branches

parent f4d28300
Pipeline #8494 failed
......@@ -11,6 +11,8 @@ variables:
MAVEN_OPTS: "-Xmx2048m -Xms2048m"
SKIP_TESTS: "true"
DEPLOYMENT_BRANCHES: ["master", "rc3.0", "rc3.1"]
DOCKER_CLI: "docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v $CI_PROJECT_DIR/maven_repo:/root/.m2 -w /usr/src/mymaven -v $CI_PROJECT_DIR:/usr/src/mymaven --env-file .env.list $MAVEN_IMAGE"
MELODIC_UPPERWARE_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f pom.xml"
UPPERWARE_METAMODEL_CLI: "mvn --batch-mode -N -Dmaven.test.skip=$SKIP_TESTS -f upperware_metamodel/pom.xml"
......@@ -241,6 +243,7 @@ build:ems-translator:
deploy:melodic-upperware:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -251,6 +254,7 @@ deploy:melodic-upperware:
deploy:upperware-metamodel:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -261,6 +265,7 @@ deploy:upperware-metamodel:
deploy:jwt-commons:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -271,6 +276,7 @@ deploy:jwt-commons:
deploy:melodic-commons:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -281,6 +287,7 @@ deploy:melodic-commons:
deploy:melodic-cache:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -291,6 +298,7 @@ deploy:melodic-cache:
deploy:dlms:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -301,6 +309,7 @@ deploy:dlms:
deploy:dlms-utility:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -311,6 +320,7 @@ deploy:dlms-utility:
deploy:dlms-controller:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -322,6 +332,7 @@ deploy:dlms-controller:
deploy:dlms-webservice:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -333,6 +344,7 @@ deploy:dlms-webservice:
deploy:penalty-calculator:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -343,6 +355,7 @@ deploy:penalty-calculator:
deploy:jwt-server:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -354,6 +367,7 @@ deploy:jwt-server:
deploy:utility-generator:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -364,6 +378,7 @@ deploy:utility-generator:
deploy:zpp-solver:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -374,6 +389,7 @@ deploy:zpp-solver:
deploy:adapter:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -385,6 +401,7 @@ deploy:adapter:
deploy:cp-generator:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -396,6 +413,7 @@ deploy:cp-generator:
deploy:cp-solver:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -407,6 +425,7 @@ deploy:cp-solver:
deploy:dlms-agent:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: "python:latest"
before_script:
- pip install awscli
......@@ -422,6 +441,7 @@ deploy:dlms-agent:
deploy:ems:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -432,6 +452,7 @@ deploy:ems:
deploy:ems-util:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -442,6 +463,7 @@ deploy:ems-util:
deploy:ems-broker-client:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -452,6 +474,7 @@ deploy:ems-broker-client:
deploy:ems-broker-cep:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -462,6 +485,7 @@ deploy:ems-broker-cep:
deploy:ems-baguette-client:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -472,6 +496,7 @@ deploy:ems-baguette-client:
deploy:ems-baguette-server:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -482,6 +507,7 @@ deploy:ems-baguette-server:
deploy:ems-baguette-client-install:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -492,6 +518,7 @@ deploy:ems-baguette-client-install:
deploy:ems-translator:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -502,6 +529,7 @@ deploy:ems-translator:
deploy:ems-server:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -513,6 +541,7 @@ deploy:ems-server:
deploy:gen-solver:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -524,6 +553,7 @@ deploy:gen-solver:
deploy:metasolver:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -535,6 +565,7 @@ deploy:metasolver:
deploy:mq-adapter:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -546,6 +577,7 @@ deploy:mq-adapter:
deploy:nc-solver:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -557,6 +589,7 @@ deploy:nc-solver:
deploy:pt-solver:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......@@ -568,6 +601,7 @@ deploy:pt-solver:
deploy:gui-backend:
stage: deploy
only: $DEPLOYMENT_BRANCHES
image: $DOCKER_DIND_IMAGE
services:
- $DOCKER_DIND_SERVICE
......
Supports Markdown
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