chore: homebrew (#3682)

This commit is contained in:
Florian Forster 2022-05-20 17:50:25 +02:00 committed by GitHub
parent 0ba165363e
commit 0b2dfdd430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 6 deletions

View File

@ -51,7 +51,19 @@ dockers:
- "--platform=linux/arm64"
archives:
- format: binary
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
gomod:
proxy: false
@ -84,10 +96,6 @@ brews:
- name: git
install: |-
bin.install "zitadel"
bash_completion.install "completions/zitadel.bash" => "zitadel"
zsh_completion.install "completions/zitadel.zsh" => "zitadel"
fish_completion.install "completions/gorezitadelleaser.fish"
man1.install "manpages/zitadel.1.gz"
announce:
discord:

View File

@ -16,8 +16,19 @@ export ZITADEL_EXTERNALDOMAIN=localhost
export ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
export MY_ARCHITECTURE="arm64"
# Download the zitadel binary
# Download and Install ZITADEL
Either use `Homebrew` ...
```bash
brew install zitadel/tap/zitadel
```
... or download the binary from GitHub
```bash
curl -s https://api.github.com/repos/zitadel/zitadel/releases/tags/v2.0.0-v2-alpha.3 | grep "browser_download_url.*zitadel_.*_darwin_${MY_ARCHITECTURE}" | cut -d '"' -f 4 | sudo wget -i - -O /usr/local/bin/zitadel && sudo chmod +x /usr/local/bin/zitadel && sudo chown $(id -u):$(id -g) /usr/local/bin/zitadel
```
# Run the database and application containers
zitadel admin start-from-init --masterkey "MasterkeyNeedsToHave32Characters"