Skip to content

Commit

Permalink
ci: set goreleaser ldflaps for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Feb 25, 2023
1 parent e02f819 commit b48211b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
- pull_request
- push
permissions:
contents: write
packages: write
jobs:
test:
Expand Down Expand Up @@ -144,4 +145,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_REPO: ${{ steps.docker.outputs.gitRepo }}
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ builds:
- linux
- windows
- darwin
ldflags:
- -w -s -X {{ .Env.GIT_REPO }}/cmd.Version={{ .Version }} -X {{ .Env.GIT_REPO }}/cmd.GitCommit={{ .Commit }}
archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit b48211b

Please sign in to comment.