Skip to content

Commit

Permalink
ci: add versioned home brew releases, autogen PRs in homebrew-bomctl …
Browse files Browse the repository at this point in the history
…repo (bomctl#61)

Signed-off-by: Allen Shearin <allen.p.shearin@gmail.com>
  • Loading branch information
ashearin authored May 30, 2024
1 parent 6dc2290 commit 2012fb4
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,37 @@ before:
- go mod tidy

brews:
- repository:
- name: "{{ .ProjectName }}"
repository:
owner: bomctl
name: homebrew-bomctl
branch: "{{ .ProjectName }}-{{ .Tag }}"
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
pull_request:
enabled: true
base:
branch: main
owner: bomctl
name: homebrew-bomctl
commit_msg_template: "build(release): upgrade {{ .ProjectName }} to {{ .Tag }}"
homepage: https://github.com/bomctl/bomctl
description: Format agnostic SBOM tooling
license: Apache License 2.0

# NOTE: Using .Version instead of .Tag here because homebrew can't handle versions with a 'v'
- name: "{{ .ProjectName }}@{{ .Version }}"
repository:
owner: bomctl
name: homebrew-bomctl
branch: "{{ .ProjectName }}-{{ .Tag }}"
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
pull_request:
enabled: true
base:
branch: main
owner: bomctl
name: homebrew-bomctl
commit_msg_template: "build(release): {{ .ProjectName }}@{{ .Tag }}"
homepage: https://github.com/bomctl/bomctl
description: Format agnostic SBOM tooling
license: Apache License 2.0
Expand Down

0 comments on commit 2012fb4

Please sign in to comment.