Skip to content

Commit

Permalink
fix: another try to fix goreleaser slack announce
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
  • Loading branch information
fzipi committed Jul 26, 2023
1 parent 29c6c1c commit 9e6056f
Showing 1 changed file with 28 additions and 50 deletions.
78 changes: 28 additions & 50 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before:
# You may remove this if you don't use go modules.
- go mod download
builds:
- id: "ftw"
- id: 'ftw'
env:
- GO111MODULE=on
- CGO_ENABLED=0
Expand All @@ -23,94 +23,72 @@ archives:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}-checksums.txt"
name_template: '{{ .ProjectName }}-checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
use: github
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
regexp: '^.*feat[(\\w)]*:+.*$'
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
- title: 'Bug fixes'
regexp: '^.*fix[(\\w)]*:+.*$'
order: 1
- title: Others
order: 999
filters:
exclude:
- "^docs"
- "^test"
- '^docs'
- '^test'
release:
prerelease: auto
dockers:
- image_templates:
- "ghcr.io/coreruleset/go-ftw:{{ .Version }}-amd64"
- 'ghcr.io/coreruleset/go-ftw:{{ .Version }}-amd64'
use: buildx
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
- '--platform=linux/amd64'
- image_templates:
- "ghcr.io/coreruleset/go-ftw:{{ .Version }}-arm64"
- 'ghcr.io/coreruleset/go-ftw:{{ .Version }}-arm64'
use: buildx
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
- '--platform=linux/arm64'
docker_manifests:
- name_template: "ghcr.io/coreruleset/go-ftw:latest"
- name_template: 'ghcr.io/coreruleset/go-ftw:latest'
image_templates:
- "ghcr.io/coreruleset/go-ftw:{{ .Version }}-amd64"
- "ghcr.io/coreruleset/go-ftw:{{ .Version }}-arm64"
- name_template: "ghcr.io/coreruleset/go-ftw:{{ .Version }}"
- 'ghcr.io/coreruleset/go-ftw:{{ .Version }}-amd64'
- 'ghcr.io/coreruleset/go-ftw:{{ .Version }}-arm64'
- name_template: 'ghcr.io/coreruleset/go-ftw:{{ .Version }}'
image_templates:
- "ghcr.io/coreruleset/go-ftw:{{ .Version }}-amd64"
- "ghcr.io/coreruleset/go-ftw:{{ .Version }}-arm64"
- 'ghcr.io/coreruleset/go-ftw:{{ .Version }}-amd64'
- 'ghcr.io/coreruleset/go-ftw:{{ .Version }}-arm64'
nfpms:
- id: "ftw"
builds: ["ftw"]
- id: 'ftw'
builds: ['ftw']
formats:
- deb
- rpm
bindir: /usr/bin
overrides:
rpm:
file_name_template: >-
{{ .ProjectName }}-
{{- .Version }}.
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}
{{- end }}
deb:
file_name_template: >-
{{ .ProjectName }}-
{{- .Version }}_
{{- .Arch }}
vendor:
file_name_template: '{{ .ConventionalFileName }}'
vendor: OWASP Core Rule Set Project
homepage: https://github.com/coreruleset/go-ftw
maintainer: felipe.zipitria@owasp.org
description: >
Framework for Testing WAFs - Go version
It uses the OWASP Core Ruleset V3 as a baseline to test rules on a WAF.
Each rule from the ruleset is loaded into a YAML file that issues HTTP
requests that will trigger these rules. Users can verify the execution
of the rule after the tests are issued to make sure the expected
response is received from an attack.
license: APL2
It uses the OWASP Core Ruleset V3 as a baseline to test rules on a WAF. Each rule from the ruleset is loaded into a YAML file that issues HTTP requests that will trigger these rules. Users can verify the execution of the rule after the tests are issued to make sure the expected response is received from an attack.
license: APL2
announce:
slack:
enabled: true
message_template: >
{{ .ProjectName }} {{ .Tag }} is out!
Check it out at {{ .ReleaseURL }}
channel: "#coreruleset-notify"
username: "Releaser"
icon_emoji: ":new:"
blocks:
- type: section
text:
type: mrkdwn
text: "{{ .ReleaseNotes }}"
{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}
channel: '#coreruleset-notify'
username: 'Releaser'
icon_emoji: ':new:'
attachments: []

0 comments on commit 9e6056f

Please sign in to comment.