Commit 44c41cd7 authored by mriedl's avatar mriedl
Browse files

Dedicated yaml for proactive

parent f1a2c270
Pipeline #20649 failed
# Gitlab CI/CD script for the Melodic Integration project
variables:
DOCKER_PUSH: "true"
DOCKER_REPO: "gitlab.ow2.org:4567"
MAVEN_IMAGE: "maven:3.5.2-jdk-8"
DOCKER_DIND_IMAGE: "docker:19.03.1"
......@@ -10,14 +9,10 @@ variables:
LOCAL_REPO: "127.0.0.1:5000"
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 $MAVEN_IMAGE"
CONNECTORS_CLI: "mvn -DskipTests --batch-mode -U -f connectors/pom.xml"
RAML_TO_JAXRS_CLI: "mvn -DskipTests --batch-mode -f raml-to-jaxrs-7bulls/pom.xml"
INTERFACES_CLI: "mvn -DskipTests --batch-mode -f interfaces/pom.xml"
MULE_ESB_CLI: "mvn -DskipTests --batch-mode -f mule_esb/pom.xml"
PROCESS_CLI: "mvn -DskipTests --batch-mode -f process/pom.xml"
DOCKER_DRIVER: overlay
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG: "morphemic-rc2.5"
IMAGE_TAG: "proactive-dev-2.5"
cache:
paths:
......@@ -41,19 +36,10 @@ after_script:
- echo '=========================================================================='
stages:
- build-connectors
- build-raml
- build-interfaces
- deploy-connectors
- deploy-raml
- deploy-interfaces
- deploy-rest
build-connectors:connectors:
stage: build-connectors
image: $MAVEN_IMAGE
script:
- $CONNECTORS_CLI clean install
build-raml:raml_to_jaxrs:
stage: build-raml
......@@ -69,31 +55,11 @@ build-interfaces:interfaces:
script:
- $INTERFACES_CLI clean install
deploy-connectors:connectors:
stage: deploy-connectors
image: $MAVEN_IMAGE
only:
- master
- rc3.0
- rc3.1
- morph-rc1.5
- morphemic-rc2.5
- proactive-dev
dependencies:
- build-connectors:connectors
script:
- $CONNECTORS_CLI deploy
deploy-raml:raml_to_jaxrs:
stage: deploy-raml
image: $MAVEN_IMAGE
only:
- master
- rc3.0
- rc3.1
- morph-rc1.5
- morphemic-rc2.5
- proactive-dev
- proactive-dev-2.5
dependencies:
- build-raml:raml_to_jaxrs
script:
......@@ -103,12 +69,7 @@ deploy-interfaces:interfaces:
stage: deploy-interfaces
image: $MAVEN_IMAGE
only:
- master
- rc3.0
- rc3.1
- morph-rc1.5
- morphemic-rc2.5
- proactive-dev
- proactive-dev-2.5
dependencies:
- build-interfaces:interfaces
script:
......@@ -118,12 +79,7 @@ deploy-rest:mule_esb:
stage: deploy-rest
image: $DOCKER_DIND_IMAGE
only:
- master
- rc3.0
- rc3.1
- morph-rc1.5
- morphemic-rc2.5
- proactive-dev
- proactive-dev-2.5
dependencies:
- deploy-raml:raml_to_jaxrs
- deploy-interfaces:interfaces
......@@ -133,25 +89,4 @@ deploy-rest:mule_esb:
- $DOCKER_CLI $MULE_ESB_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $DOCKER_REPO -u $K8S_SECRET_DOCKER_USER --password-stdin
- docker tag $LOCAL_REPO/melodic/mule $DOCKER_REPO/melodic/melodic-integration/mule:$IMAGE_TAG
- docker push $DOCKER_REPO/melodic/melodic-integration/mule:$IMAGE_TAG
deploy-rest:process:
stage: deploy-rest
image: $DOCKER_DIND_IMAGE
only:
- master
- rc3.0
- rc3.1
- morph-rc1.5
- morphemic-rc2.5
- proactive-dev
dependencies:
- deploy-raml:raml_to_jaxrs
- deploy-interfaces:interfaces
services:
- $DOCKER_DIND_SERVICE
script:
- $DOCKER_CLI $PROCESS_CLI -Ddocker.imagePrefix=melodic/ clean install
- echo "$K8S_SECRET_DOCKER_PASSWORD" | docker login $DOCKER_REPO -u $K8S_SECRET_DOCKER_USER --password-stdin
- docker tag $LOCAL_REPO/melodic/process $DOCKER_REPO/melodic/melodic-integration/process:$IMAGE_TAG
- docker push $DOCKER_REPO/melodic/melodic-integration/process:$IMAGE_TAG
- docker push $DOCKER_REPO/melodic/melodic-integration/mule:$IMAGE_TAG
\ No newline at end of file
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