We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b4ac7f commit 87808f3Copy full SHA for 87808f3
.github/workflows/build-containers.yml
@@ -96,7 +96,7 @@ jobs:
96
97
- name: Set up additional flags
98
if: ${{ matrix.container == 'core' }}
99
- run: echo "ADDITIONAL_GO_FLAGS=-X github.com/goharbor/harbor/src/lib/config.GitCommit=$(git rev-parse HEAD) -X github.com/goharbor/harbor/src/lib/config.ReleaseVersion=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
+ run: echo "ADDITIONAL_GO_FLAGS=-ldflags=\"-X github.com/goharbor/harbor/src/lib/config.GitCommit=$(git rev-parse HEAD) -X github.com/goharbor/harbor/src/lib/config.ReleaseVersion=$(git describe --tags --abbrev=0)\"" >> $GITHUB_ENV
100
- name: Build binary
101
if: ${{ matrix.build_binary != '' }}
102
run: |
0 commit comments