From 2e39e718eba8e0da2abb57c013bceb03581fd6b7 Mon Sep 17 00:00:00 2001 From: Arthur Chaloin Date: Mon, 27 Jun 2022 11:54:43 +0200 Subject: [PATCH] fix: display correct version in prebuilt binaries --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d49f1f..d54e8cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -109,7 +109,7 @@ release-assets: export GOOS=$(echo "$platform" | cut -d'/' -f1) export GOARCH=$(echo "$platform" | cut -d'/' -f2) BIN=$CI_PROJECT_NAME-$GOOS-$GOARCH - go build -tags netgo,osusergo -o $BIN -ldflags "-X \"enix.io/$CI_PROJECT_NAME/internal.Version=${CI_COMMIT_REF_SLUG:1}\"" ./cmd/$CI_PROJECT_NAME + go build -tags netgo,osusergo -o $BIN -ldflags "-X \"enix.io/$CI_PROJECT_NAME/v3/internal.Version=${CI_COMMIT_REF_SLUG:1}\"" ./cmd/$CI_PROJECT_NAME ./test/upload-release.sh "github_api_token=$GITHUB_TOKEN" "owner=enix" "repo=$CI_PROJECT_NAME" "tag=$CI_COMMIT_TAG" "filename=$BIN" done