build: add commit hash to Config at build for proper discovery readme (#854)

* build: add commit hash to Config at build for proper discovery readme link

* fix: use tag instead of commit hash, add to release build

Signed-off-by: Catalin Hofnar <catalin.hofnar@gmail.com>
This commit is contained in:
Catalin Hofnar
2022-10-11 19:01:59 +03:00
committed by GitHub
parent 4bc7a2c824
commit f3b1913fbd
5 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ build:
cd /go/src/github.com/project-zot
git clone /zotcopy zot
cd /go/src/github.com/project-zot/zot
make COMMIT=${{COMMIT}} OS=${{OS}} ARCH=${{ARCH}} clean binary${{EXT:}}
make COMMIT=${{COMMIT}} OS=${{OS}} ARCH=${{ARCH}} RELEASE_TAG=&{{RELEASE_TAG}} clean binary${{EXT:}}
cat > config.json << EOF
{
"storage":{