Skip to content

Commit

Permalink
fix(release.yml): Correct build image LDFLAGS declaration (#71)
Browse files Browse the repository at this point in the history
Build args may not contain quotes.
  • Loading branch information
nieomylnieja authored Jun 2, 2024
1 parent 446ab67 commit 84b6418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
GITHUB_TOKEN: ${{secrets.GORELEASER_TOKEN}}
image:
runs-on: ubuntu-latest
needs: binary
permissions:
id-token: write
packages: write
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
LDFLAGS="-s -w -X main.BuildVersion=${{ github.ref }} -X main.BuildGitTag=${{ github.ref }} -X main.BuildDate=${{ steps.date.outputs.date }}"
LDFLAGS=-s -w -X main.BuildVersion=${{ github.ref }} -X main.BuildGitTag=${{ github.ref }} -X main.BuildDate=${{ steps.date.outputs.date }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
Expand Down

0 comments on commit 84b6418

Please sign in to comment.