From c134f8a7d8f12535e555577a2b58ede4d000f31c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Tue, 3 Jan 2023 22:32:23 +0100 Subject: [PATCH] ci(build): add version number on build --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 341bc84..6c04390 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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: