Commit d49dc307 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'use-tagged-release-as-build-version' into 'master'

Use tagged release as BUILD_VERSION if set

See merge request !136
parents ecce9c40 e86ff619
Pipeline #1970 passed with stages
in 30 minutes and 43 seconds
......@@ -25,7 +25,14 @@ shfmt:
- pacman -Syu --needed --noconfirm qemu-headless libisoburn
- echo "BUILD_VERSION=$(date +%Y%m%d).$CI_JOB_ID" > build.env
- |
# If we're building a tagged release, use the tag (without the 'v' prefix) as the
# BUILD_VERSION. Otherwise, determine a new BUILD_VERSION.
if [[ -n "$CI_COMMIT_TAG" ]]; then
echo "BUILD_VERSION=${CI_COMMIT_TAG/v/}" > build.env
echo "BUILD_VERSION=$(date +%Y%m%d).$CI_JOB_ID" > build.env
- export $(< build.env)
- ./
Supports Markdown
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