Skip to content

Commit

Permalink
chore: update configs to current goreleaser spec
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion authored and fzipi committed Jul 24, 2023
1 parent 9049d9d commit 750f77d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
args: release --clean
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 10 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,17 @@ nfpms:
bindir: /usr/bin
overrides:
rpm:
replacements:
amd64: x86_64
file_name_template: "{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}"
file_name_template: >-
{{ .ProjectName }}-
{{- .Version }}.
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}
{{- end }}
deb:
file_name_template: "{{ .ProjectName }}-{{ .Version }}_{{ .Arch }}"
file_name_template: >-
{{ .ProjectName }}-
{{- .Version }}_
{{- .Arch }}
vendor:
homepage: https://github.com/coreruleset/go-ftw
maintainer: felipe.zipitria@owasp.org
Expand Down

0 comments on commit 750f77d

Please sign in to comment.