1
0
mirror of https://github.com/ManyakRus/image_database.git synced 2025-11-06 09:29:08 +02:00
Files
image_database/make_version.sh
Nikitin Aleksandr 0a0624a6fd сделал make mod
2024-11-27 11:30:37 +03:00

8 lines
379 B
Bash
Executable File

# версия приложения из git заполняется в файл: version.txt
# образец:
# v1.0.4-23-gf3bbaf4 2024-10-14 14:43:55 +0300
# v1.0.61 2024-10-14 14:25:20 +0300
# git commit TAG + git commit HASH + git commit date and time
echo $(git describe --always --tags $(git rev-parse HEAD)) $(git show --no-patch --format=%ci) >./pkg/version/version.txt