Commit 1d4232dd authored by Oliver Lowe's avatar Oliver Lowe
Browse files

Append gitlabci build number to package version field

For more info, see
parent 1d9a0bb7
...@@ -6,6 +6,8 @@ package: ...@@ -6,6 +6,8 @@ package:
image: debian image: debian
stage: package stage: package
script: script:
- cp dist/control dist/control.skel
- dist/bumpver dist/control.skel > dist/control
- debian/mkdeb - debian/mkdeb
artifacts: artifacts:
paths: paths:
#!/usr/bin/awk -f
# bumpver prints a modified debian package control file based on
# environment variables set from Gitlab CI. If a tagged revision is
# being built, then the Version field is the plain semver. Otherwise,
# the version from the control file has the Gitlab CI pipeline ID
# appended.
/Version/ {
# strip "v" prefix from tag
sub("^v", "", semver)
printf "%s %s\n", $1, semver
printf("%s-%d\n", $0, ENVIRON["CI_PIPELINE_IID"])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment