stack-orchestrator/scripts/update_version_file.sh

8 lines
358 B
Bash
Raw Normal View History

2023-01-10 21:09:38 +00:00
version_file_name=./app/data/version.txt
echo "# This file should be re-generated running: scripts/update-version-file.sh script" > $version_file_name
2023-01-10 21:23:59 +00:00
tag_string=$( git describe --tags --abbrev=0 )
commit_string=$( git rev-parse --short HEAD )
version_string=${tag_string}-${commit_string}
echo ${version_string} >> $version_file_name
echo ${version_string}