diff --git a/.github/workflows/release_draft.yml b/.github/workflows/release_draft.yml index 94801d19a..1621fedc9 100644 --- a/.github/workflows/release_draft.yml +++ b/.github/workflows/release_draft.yml @@ -61,3 +61,4 @@ jobs: args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 02dfb97d3..c33727ba5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -153,6 +153,27 @@ checksum: snapshot: version_template: "{{ incpatch .Version }}-next" +homebrew_casks: + - + name: dnscontrol + url: + template: "https://github.com/StackExchange/dnscontrol/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + commit_author: + name: goreleaserbot + email: bot@goreleaser.com + commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}" + directory: Casks + homepage: "https://docs.dnscontrol.org/" + description: "DNSControl: Infrastructure as Code for DNS Zones" + license: "MIT" + conflicts: + - formula: dnscontrol + repository: + owner: StackExchange + name: homebrew-tap + branch: main + token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" + release: draft: true prerelease: auto @@ -171,7 +192,7 @@ release: ##### Install with [Homebrew](https://brew.sh) (recommended) ```shell - brew install dnscontrol + brew install StackExchange/tap/dnscontrol ``` ##### Using with [Docker](https://www.docker.com) @@ -199,7 +220,7 @@ release: #### Update with [Homebrew](https://brew.sh) ```shell - brew upgrade dnscontrol + brew upgrade StackExchange/tap/dnscontrol ``` Alternatively, you can grab the latest binary (or the apt/rpm/deb package) from this page. diff --git a/documentation/getting-started/getting-started.md b/documentation/getting-started/getting-started.md index 597c2a7a4..095e86fb3 100644 --- a/documentation/getting-started/getting-started.md +++ b/documentation/getting-started/getting-started.md @@ -15,7 +15,7 @@ Choose one of the following installation methods: On macOS (or Linux) you can install it using [Homebrew](https://brew.sh). ```shell -brew install dnscontrol +brew install StackExchange/tap/dnscontrol ``` ### Docker