Skip to content

Commit 87808f3

Browse files
committed
Attempt to fix go flags
1 parent 4b4ac7f commit 87808f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696

9797
- name: Set up additional flags
9898
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
99+
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
100100
- name: Build binary
101101
if: ${{ matrix.build_binary != '' }}
102102
run: |

0 commit comments

Comments
 (0)