Skip to content

Commit

Permalink
[CI] Fix commit ID not included in binary builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Nov 16, 2021
1 parent 303f81c commit d77e0d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
working-directory: application
env:
GPTS_VERSION: ${{ steps.version.outputs.version }}
GPTS_COMMIT_ID: ${{ steps.versions.outputs.commitId }}
GPTS_COMMIT_ID: ${{ steps.version.outputs.commitId }}
run: |
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.version=${GPTS_VERSION}' -X 'main.gitCommit=${GPTS_COMMIT_ID}' -X 'main.binaryType=static' -w -extldflags '-static'" -o bin/gpts-${GPTS_VERSION}-linux-amd64 .
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags "-X 'main.version=${GPTS_VERSION}' -X 'main.gitCommit=${GPTS_COMMIT_ID}' -X 'main.binaryType=static' -w -extldflags '-static'" -o bin/gpts-${GPTS_VERSION}-linux-i386 .
Expand Down

0 comments on commit d77e0d6

Please sign in to comment.