Skip to content

Commit

Permalink
fix: display correct version in prebuilt binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
arcln committed Jun 27, 2022
1 parent a7d628b commit 2e39e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e39e71

Please sign in to comment.