Skip to content

Commit

Permalink
Merge pull request #146 from authzed/brew
Browse files Browse the repository at this point in the history
add homebrew release
  • Loading branch information
ecordell authored Sep 30, 2021
2 parents c201f6b + 63d33de commit b629365
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ jobs:
args: "release --rm-dist"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
HOMEBREW_TAP_GITHUB_TOKEN: "${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}"
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,30 @@ nfpms:
- "apk"
- "deb"
- "rpm"
brews:
- tap:
owner: "authzed"
name: "homebrew-tap"
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/authzed/spicedb/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: "CurlDownloadStrategy"
commit_author:
name: "authzedbot"
email: "infrastructure@authzed.com"
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://authzed.com/"
description: "SpiceDB is a Zanzibar-inspired database that stores, computes, and validates application permissions."
license: "Apache-2.0"
folder: "Formula"
custom_block: |
head "https://github.com/authzed/spicedb.git", :branch => "main"
dependencies:
- name: "go"
type: "build"
test: |
system "#{bin}/spicedb version"
install: |
bin.install "spicedb"
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down
25 changes: 10 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,25 @@ This has strategy has become an industry best-practice and is being used to grea

### Installing SpiceDB

#### Pulling down a container image
SpiceDB is currently packaged by [Homebrew] for both macOS and Linux.
Individual releases and other formats are also available on the [releases page].

The latest stable release can be obtained by running the following command:
[Homebrew]: https://brew.sh
[releases page]: https://github.com/authzed/spicedb/releases

```sh
docker pull quay.io/authzed/spicedb:latest
brew install authzed/tap/spicedb
```

For production usage, we **highly** recommend using a tag that corresponds to the [latest release], rather than `latest`.

[latest release]: https://github.com/authzed/spicedb/releases

#### Building and installing a binary

In order to build and install SpiceDB, the [latest stable version of Go] must be installed.

Running the following command will install the latest stable release:
SpiceDB is also available as a container image:

```sh
go install github.com/authzed/spicedb/cmd/spicedb@latest
docker pull quay.io/authzed/spicedb:latest
```

[latest stable version of Go]: https://golang.org/dl
[working Go environment]: https://golang.org/doc/code.html
For production usage, we **highly** recommend using a tag that corresponds to the [latest release], rather than `latest`.

[latest release]: https://github.com/authzed/spicedb/releases

### Running SpiceDB locally

Expand Down

0 comments on commit b629365

Please sign in to comment.