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.
|
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
|
== Setup
|
||||||
|
|
||||||
This pipeline should be included as a child-pipeline in your gitlab-ci pipeline.
|
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.
|
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
|
In your gitlab-ci.yml include the following
|
||||||
|
|
||||||
@ -32,41 +25,36 @@ In your gitlab-ci.yml include the following
|
|||||||
stages:
|
stages:
|
||||||
- release
|
- release
|
||||||
|
|
||||||
a.major-image-release:
|
include:
|
||||||
stage: release
|
- project: 'gilden/ci/gitlab-ci-templates'
|
||||||
when: manual
|
ref: 'master'
|
||||||
only:
|
files:
|
||||||
- master
|
- 'release-template.yml'
|
||||||
|
|
||||||
|
a.major-release:
|
||||||
|
extends: .release-template
|
||||||
variables:
|
variables:
|
||||||
BUMP_VERSION: "major"
|
BUMP_VERSION: "major"
|
||||||
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
|
||||||
trigger:
|
|
||||||
include: release.gitlab-ci.yml
|
|
||||||
strategy: depend
|
|
||||||
|
|
||||||
b.minor-image-release:
|
b.minor-release:
|
||||||
stage: release
|
extends: .release-template
|
||||||
when: manual
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
variables:
|
variables:
|
||||||
BUMP_VERSION: "minor"
|
BUMP_VERSION: "minor"
|
||||||
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
|
||||||
trigger:
|
|
||||||
include: release.gitlab-ci.yml
|
|
||||||
strategy: depend
|
|
||||||
|
|
||||||
c.patch-image-release:
|
c.patch-release:
|
||||||
stage: release
|
extends: .release-template
|
||||||
when: manual
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
variables:
|
variables:
|
||||||
BUMP_VERSION: "patch"
|
BUMP_VERSION: "patch"
|
||||||
PARENT_PIPELINE_ID: $CI_PIPELINE_ID
|
|
||||||
trigger:
|
d.prerelease-release:
|
||||||
include: release.gitlab-ci.yml
|
extends: .release-template
|
||||||
strategy: depend
|
variables:
|
||||||
|
BUMP_VERSION: "prerelease"
|
||||||
|
|
||||||
|
e.build-release:
|
||||||
|
extends: .release-template
|
||||||
|
variables:
|
||||||
|
BUMP_VERSION: "build"
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user