Commit a03663de authored by femiadeyemi's avatar femiadeyemi
Browse files

introduce multi-project pipelines

Motivation:

One of the marketplace web-server dependencies is
the marketplace-webapp.

Hence any changes in this repository should trigger
a new ci/cd in the marketplace web-server.

Modification:

- separate the test phase from the build.
- add a trigger to the deploy stage

Result:

Each new merge request and commit will create a new
ci/cd build in the marketplace web-server repository.

Target: master
Review: https://gitlab.hzdr.de/hifis-technical-platform/helmholtz-marketplace-webapp/-/merge_requests/4
parent ef6b1b5b
Pipeline #42475 passed with stages
in 10 minutes and 58 seconds
...@@ -11,9 +11,7 @@ ci_build_node12: ...@@ -11,9 +11,7 @@ ci_build_node12:
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -yqq - apt-get update -yqq
- apt-get install -y google-chrome-stable - apt-get install -y google-chrome-stable
script: script: npm install
- npm install
- npm test
ci_build_node14: ci_build_node14:
only: only:
...@@ -28,7 +26,51 @@ ci_build_node14: ...@@ -28,7 +26,51 @@ ci_build_node14:
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list - echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -yqq - apt-get update -yqq
- apt-get install -y google-chrome-stable - apt-get install -y google-chrome-stable
script: script: npm install
- npm install
- npm test
test_node12:
only:
- master
- merge_requests
stage: test
image: node:12-buster-slim
before_script:
- apt-get update -yqq
- apt-get install -y gnupg2 wget apt-transport-https
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -yqq
- apt-get install -y google-chrome-stable
script: npm install-test
test_node14:
only:
- master
- merge_requests
stage: test
image: node:14-buster-slim
before_script:
- apt-get update -yqq
- apt-get install -y gnupg2 wget apt-transport-https
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -yqq
- apt-get install -y google-chrome-stable
script: npm install-test
packaging:
only:
- master
- merge_requests
stage: package
image: maven:latest
script: "mvn -DskipTests clean package"
artifacts:
paths:
- "target/*.jar"
expire_in: 600 seconds
staging:
stage: deploy
trigger:
project: hifis-technical-platform/helmholtz-marketplace-server
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