ci(build): add version number on build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Vieille 2023-01-03 22:32:23 +01:00
parent 534c4f83ad
commit c134f8a7d8
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -3,7 +3,7 @@ pipeline:
image: golang:1.18
commands:
- test -n "$CI_COMMIT_TAG" && sed "s/{app_version}/$CI_COMMIT_TAG/g" -i main.go || true
- test -n "$CI_COMMIT_SHA" && sed "s/{app_version}/${CI_COMMIT_TAG:0:7}/g" -i main.go || true
- test -n "$CI_COMMIT_SHA" && sed "s/{app_version}/${CI_COMMIT_SHA:0:7}/g" -i main.go || true
- make test
build_push_latest_gitnet: