Skip to content

Commit

Permalink
Create a versioned brew formula for each release (#1084)
Browse files Browse the repository at this point in the history
This updates our GoReleaser pipeline to create two Homebrew formulas for
each release.

- The first formula updates the 'generic' formula we have and basically
acts as 'latest'
- The second formula is a versioned formula for the specific Zarf
release
  • Loading branch information
YrrepNoj authored Dec 5, 2022
1 parent 408e9f4 commit 0799cab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ release:
extra_files:
- glob: ./build/zarf-init-*

# Create a brew tap recipe that uses the new binary artifacts and push it to our tap
# Update the 'generic' brew formula and create a versioned brew formula for artifacts from this release
brews:
- name: zarf
tap:
Expand All @@ -69,6 +69,15 @@ brews:
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://zarf.dev/"
description: "An airgap delivery tool!"
- name: "zarf@{{ .Tag }}"
tap:
owner: defenseunicorns
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_msg_template: "Brew formula update for {{ .ProjectName }} versioned release {{ .Tag }}"
homepage: "https://zarf.dev/"
description: "An airgap delivery tool!"


# Upload artifact backups to s3
blobs:
Expand Down

0 comments on commit 0799cab

Please sign in to comment.