We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2aba58 commit 0ca34b3Copy full SHA for 0ca34b3
1 file changed
.github/workflows/release.yml
@@ -32,14 +32,14 @@ jobs:
32
- name: golang build
33
env:
34
GOARCH: ${{ matrix.arch }}
35
- run: |
36
- cd cmd/gitops
37
- go build -ldflags="-s -w -X 'main.version=${{ github.ref_name }}'" .
+ GOOS: ${{ matrix.os_name }}
+ CGO_ENABLED: 0
+ run: go build -o gitops -ldflags="-s -w -X 'main.version=${{ github.ref_name }}'" cmd/gitops/main.go
38
- name: Upload binaries to release
39
uses: svenstaro/upload-release-action@v2
40
with:
41
repo_token: ${{ secrets.GITHUB_TOKEN }}
42
- file: ${{ github.workspace }}/cmd/gitops/gitops${{ matrix.artifact_suffix }}
+ file: gitops${{ matrix.artifact_suffix }}
43
asset_name: gitops_${{ matrix.os_name }}_${{ matrix.arch }}${{ matrix.artifact_suffix }}
44
tag: ${{ github.ref }}
45
docker:
0 commit comments