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:
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
@@ -76,6 +76,7 @@ jobs:
|
|||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Scan Docker image with Trivy
|
- name: Scan Docker image with Trivy
|
||||||
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1
|
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1
|
||||||
|
|||||||
@@ -119,7 +119,8 @@ builds:
|
|||||||
- arm64
|
- arm64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- builds:
|
- id: probod
|
||||||
|
builds:
|
||||||
- probod
|
- probod
|
||||||
- probod-bootstrap
|
- probod-bootstrap
|
||||||
- prb
|
- prb
|
||||||
@@ -134,6 +135,34 @@ archives:
|
|||||||
- README.md
|
- README.md
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- CHANGELOG.md
|
- 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:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user