Skip to content
Snippets Groups Projects
Verified Commit fcadbaeb authored by Martin Weise's avatar Martin Weise
Browse files

Updated pipeline

parent e249da8c
No related branches found
No related tags found
2 merge requests!387Wrong model,!384Wrong model
...@@ -145,6 +145,8 @@ lint-open-api-version: ...@@ -145,6 +145,8 @@ lint-open-api-version:
build-metadata-service: build-metadata-service:
image: maven:3-openjdk-${JAVA_VERSION} image: maven:3-openjdk-${JAVA_VERSION}
stage: build stage: build
only:
- merge_requests
script: script:
- "mvn -f ./dbrepo-metadata-service/pom.xml clean install $MAVEN_OPTS -DskipTests" - "mvn -f ./dbrepo-metadata-service/pom.xml clean install $MAVEN_OPTS -DskipTests"
# Compiled classes are needed for SonarQube in later stages # Compiled classes are needed for SonarQube in later stages
...@@ -172,6 +174,8 @@ build-analyse-service: ...@@ -172,6 +174,8 @@ build-analyse-service:
build-lib: build-lib:
image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
stage: build stage: build
only:
- merge_requests
variables: variables:
PIPENV_PIPFILE: "./lib/python/Pipfile" PIPENV_PIPFILE: "./lib/python/Pipfile"
script: script:
...@@ -181,6 +185,8 @@ build-lib: ...@@ -181,6 +185,8 @@ build-lib:
build-data-service: build-data-service:
image: maven:3-openjdk-${JAVA_VERSION} image: maven:3-openjdk-${JAVA_VERSION}
stage: build stage: build
only:
- merge_requests
needs: needs:
- build-metadata-service - build-metadata-service
dependencies: dependencies:
...@@ -201,12 +207,16 @@ build-data-service: ...@@ -201,12 +207,16 @@ build-data-service:
build-ui: build-ui:
image: oven/bun:${BUN_VERSION}-alpine image: oven/bun:${BUN_VERSION}-alpine
stage: build stage: build
only:
- merge_requests
script: script:
- "cd ./dbrepo-ui && bun install && bun run build" - "cd ./dbrepo-ui && bun install && bun run build"
build-search-service: build-search-service:
image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION} image: docker.io/python:${PYTHON_VERSION}-alpine${ALPINE_VERSION}
stage: build stage: build
only:
- merge_requests
before_script: before_script:
- "pip install pipenv" - "pip install pipenv"
script: script:
...@@ -215,6 +225,8 @@ build-search-service: ...@@ -215,6 +225,8 @@ build-search-service:
build-images: build-images:
image: docker.io/docker:${DOCKER_VERSION}-dind image: docker.io/docker:${DOCKER_VERSION}-dind
stage: build stage: build
only:
- merge_requests
before_script: before_script:
- "apk add --no-cache make" - "apk add --no-cache make"
- echo "$CI_REGISTRY_PASSWORD" | docker login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY_URL - echo "$CI_REGISTRY_PASSWORD" | docker login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY_URL
...@@ -224,6 +236,8 @@ build-images: ...@@ -224,6 +236,8 @@ build-images:
build-helm: build-helm:
image: docker.io/docker:${DOCKER_VERSION}-dind image: docker.io/docker:${DOCKER_VERSION}-dind
stage: build stage: build
only:
- merge_requests
before_script: before_script:
- apk add --no-cache helm make - apk add --no-cache helm make
- echo "$CI_GPG_KEYRING" | base64 -d > ./secring.gpg - echo "$CI_GPG_KEYRING" | base64 -d > ./secring.gpg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment