From 0b2dfdd4309b00d140696f81a5224ae42a3d4651 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 20 May 2022 17:50:25 +0200 Subject: [PATCH] chore: homebrew (#3682) --- .goreleaser.yaml | 18 +++++++++++++----- docs/docs/guides/installation/macos.mdx | 13 ++++++++++++- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e000b93cca..0e652407c1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: diff --git a/docs/docs/guides/installation/macos.mdx b/docs/docs/guides/installation/macos.mdx index 078271ee1e..b21f736c6a 100644 --- a/docs/docs/guides/installation/macos.mdx +++ b/docs/docs/guides/installation/macos.mdx @@ -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"