Add dockerize stage and update GitLab CI pipeline
This commit is contained in:
@@ -1,15 +1,19 @@
|
|||||||
stages:
|
stages:
|
||||||
- backend_build
|
- backend_build
|
||||||
|
- dockerize
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
REGISTRY: registry.gitlab.com/rheinsw/$CI_PROJECT_PATH
|
REGISTRY: registry.gitlab.com/rheinsw/$CI_PROJECT_PATH
|
||||||
TAG: $CI_COMMIT_REF_SLUG
|
TAG: $CI_COMMIT_REF_SLUG
|
||||||
|
|
||||||
|
default:
|
||||||
|
before_script:
|
||||||
|
- cd backend
|
||||||
|
|
||||||
backend_build_job:
|
backend_build_job:
|
||||||
stage: backend_build
|
stage: backend_build
|
||||||
image: maven:3.9.9-eclipse-temurin-21@sha256:2e3824afeb41f61761adee95318814e6669bd59aaf61255b2af47064b8755c02
|
image: maven:3.9.9-eclipse-temurin-21@sha256:2e3824afeb41f61761adee95318814e6669bd59aaf61255b2af47064b8755c02
|
||||||
script:
|
script:
|
||||||
- cd backend
|
|
||||||
- mvn package
|
- mvn package
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@@ -43,4 +47,4 @@ build_discovery_image:
|
|||||||
- docker push $REGISTRY/discovery-server:$TAG
|
- docker push $REGISTRY/discovery-server:$TAG
|
||||||
needs:
|
needs:
|
||||||
- backend_build_job
|
- backend_build_job
|
||||||
- build_shared_base_image
|
- build_shared_base_image
|
||||||
|
|||||||
Reference in New Issue
Block a user