doc(update-version-pipeline): fix documentation

This commit is contained in:
Karina Schulz 2021-07-08 16:12:27 +02:00
parent 3cbb267c58
commit 7f3b578632

View File

@ -77,15 +77,20 @@ include:
# This is optional
push-docker-image:
extends: .publish-image-kaniko
stage: release
extends: .push-image-kaniko
# You only need NEED if you use a artifact from your parent pipeline to build the image
needs:
- pipeline: $PARENT_PIPELINE_ID
#Get artifacts from parent pipeline #https://docs.gitlab.com/ee/ci/yaml/README.html#artifact-downloads-to-child-pipelines
job: mvn-build
job: Build
- job: increase-version
- job: push-tag-version
- job: push-tag-and-version
rules:
- when: always
before_script:
- "[ -f ./version ] && export LATEST_VERSION=$(cat ./version)"
- export PARSED_VERSION=$(echo $LATEST_VERSION | sed -r 's/\+/_/g') # Replace + sign since this is not valid in a docker tag
- export IMAGE_NAME=$CI_REGISTRY_IMAGE:$PARSED_VERSION
----
You pipeline then looks like the following: