doc(update-version-pipeline): fix docu
This commit is contained in:
parent
649fa625db
commit
6cc3a69bb4
@ -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"
|
||||
|
||||
----
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user