separate script to create obsw version file
EIVE/eive-obsw/pipeline/head This commit looks good Details

This commit is contained in:
Robin Müller 2022-09-16 18:53:11 +02:00
parent 0fc639cc11
commit afba412fe2
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
1 changed files with 7 additions and 0 deletions

7
scripts/create-version-file.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
obsw_version_filename="obsw_version.txt"
version_cmd="git describe --tags --always --exclude docker_*"
version_tag=$(${version_cmd})
echo "-I- Running ${version_cmd} to retrieve OBSW version and store it into ${obsw_version_filename}"
echo "-I- Detected version tag ${version_tag}"
echo ${version_tag} > ${obsw_version_filename}