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

Use tagged release as BUILD_VERSION if set

parent ecce9c40
Pipeline #1965 passed with stages
in 23 minutes and 48 seconds
......@@ -25,7 +25,14 @@ shfmt:
before_script:
- pacman -Syu --needed --noconfirm qemu-headless libisoburn
script:
- 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
else
echo "BUILD_VERSION=$(date +%Y%m%d).$CI_JOB_ID" > build.env
fi
- export $(< build.env)
- ./build-host.sh
after_script:
......
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