Add Homebrew tap publishing for prb CLI

Configure GoReleaser to publish the prb CLI to the getprobo/homebrew-tap repository on each release. Separate the prb archive from the main probod archive and add the necessary GitHub token to the release workflow.

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-20 14:32:52 +01:00
parent c1e41d88fc
commit 138f24ef59
2 changed files with 31 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
- name: Scan Docker image with Trivy
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1

View File

@@ -119,7 +119,8 @@ builds:
- arm64
archives:
- builds:
- id: probod
builds:
- probod
- probod-bootstrap
- prb
@@ -134,6 +135,34 @@ archives:
- README.md
- LICENSE
- CHANGELOG.md
- id: prb
builds:
- prb
name_template: >-
prb_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- README.md
- LICENSE
- CHANGELOG.md
brews:
- ids:
- prb
repository:
owner: getprobo
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: probo-bot
email: bot@getprobo.com
homepage: "https://github.com/getprobo/probo"
description: "CLI for the Probo compliance management platform"
license: "ISC"
checksum:
name_template: "checksums.txt"