Update .gitlab-ci.yml

This commit is contained in:
Christoph Schabert 2024-03-27 15:41:37 +01:00
parent 096544d8e2
commit a71ee61e1b

View File

@ -7,18 +7,13 @@ include:
ref: 'main'
file: 'ci-templates/gradle_java.yml'
deploy:
deploy JavaDoc:
stage: deploy
tags:
- dind
script:
- echo "Building with gradle version ${BUILDVERSION}"
- echo "Building JavaDoc with gradle version ${BUILDVERSION}"
- gradle -Pversion=${BUILDVERSION} publish
- gradle bootBuildImage --publishImage -PbuildbootDockerHostNetwork=true -Pversion=${BUILDVERSION}
- echo "BUILDVERSION=$BUILDVERSION" >> version.env
artifacts:
reports:
dotenv: version.env
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^release/
@ -37,4 +32,4 @@ generateJavaDoc:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ /^release/
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_TAG