doc(update-version-pipeline): fix documentation
This commit is contained in:
parent
3cbb267c58
commit
7f3b578632
@ -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
|
||||
# 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user