From 6cc3a69bb4d3620b4d50b62a428436ccf47b28ba Mon Sep 17 00:00:00 2001 From: Karina Schulz Date: Thu, 8 Jul 2021 09:51:31 +0200 Subject: [PATCH] doc(update-version-pipeline): fix docu --- .../pipelines/update-version-pipeline.adoc | 58 ++++++++----------- 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/documentation/chapters/pipelines/update-version-pipeline.adoc b/documentation/chapters/pipelines/update-version-pipeline.adoc index 4441db9..1cba93b 100644 --- a/documentation/chapters/pipelines/update-version-pipeline.adoc +++ b/documentation/chapters/pipelines/update-version-pipeline.adoc @@ -10,19 +10,12 @@ This pipeline provides the jobs to increase the version, create a new tag and up It can be extended to push a docker image to a docker registry. -.Variables -|=== -|Name |Description | Default Value - -|BUMP_VERSION | defines the version bump | "major" -|=== - == Setup This pipeline should be included as a child-pipeline in your gitlab-ci pipeline. You then can add an individual release job for each kind of version bump. -NOTE: You only need the variable `PARENT_PIPELINE_ID` , if you use an https://docs.gitlab.com/ee/ci/yaml/README.html#artifact-downloads-to-child-pipelines[artfact of you parent-pipeline in your child pipeline] +NOTE: You only need the variable `PARENT_PIPELINE_ID` , if you use an https://docs.gitlab.com/ee/ci/yaml/README.html#artifact-downloads-to-child-pipelines[artifact of you parent-pipeline in your child pipeline] In your gitlab-ci.yml include the following @@ -32,41 +25,36 @@ In your gitlab-ci.yml include the following stages: - release -a.major-image-release: - stage: release - when: manual - only: - - master +include: + - project: 'gilden/ci/gitlab-ci-templates' + ref: 'master' + files: + - 'release-template.yml' + +a.major-release: + extends: .release-template variables: BUMP_VERSION: "major" - PARENT_PIPELINE_ID: $CI_PIPELINE_ID - trigger: - include: release.gitlab-ci.yml - strategy: depend -b.minor-image-release: - stage: release - when: manual - only: - - master +b.minor-release: + extends: .release-template variables: BUMP_VERSION: "minor" - PARENT_PIPELINE_ID: $CI_PIPELINE_ID - trigger: - include: release.gitlab-ci.yml - strategy: depend -c.patch-image-release: - stage: release - when: manual - only: - - master +c.patch-release: + extends: .release-template variables: BUMP_VERSION: "patch" - PARENT_PIPELINE_ID: $CI_PIPELINE_ID - trigger: - include: release.gitlab-ci.yml - strategy: depend + +d.prerelease-release: + extends: .release-template + variables: + BUMP_VERSION: "prerelease" + +e.build-release: + extends: .release-template + variables: + BUMP_VERSION: "build" ----