ci(build): add version number on build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
534c4f83ad
commit
c134f8a7d8
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue