From 5488e6d5fa3a10f535a7b9f0d81f6402176dd8b1 Mon Sep 17 00:00:00 2001 From: Travis Groth Date: Wed, 2 Sep 2020 17:32:52 -0400 Subject: [PATCH] deployment: fully split release archives and brews (#1365) --- .github/goreleaser.yaml | 24 +++++++++++++++++++++++- docs/docs/installation.md | 10 ++++------ 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.github/goreleaser.yaml b/.github/goreleaser.yaml index 8711c6285..f7c48c2ef 100644 --- a/.github/goreleaser.yaml +++ b/.github/goreleaser.yaml @@ -78,7 +78,6 @@ archives: id: pomerium builds: - pomerium - - pomerium-cli files: - none* format_overrides: @@ -177,3 +176,26 @@ brews: folder: Formula install: | bin.install "pomerium-cli" + + - # Name template of the recipe + name: pomerium + # IDs of the archives to use. + ids: + - pomerium + # GOARM to specify which 32-bit arm version to use if there are multiple versions + # from the build section. Brew formulas support atm only one 32-bit version. + # Default is 6 for all artifacts or each id if there a multiple versions. + goarm: 6 + tap: + owner: pomerium + name: homebrew-tap + # Optionally a token can be provided, if it differs from the token provided to GoReleaser + token: "{{ .Env.APPARITOR_GITHUB_TOKEN }}" + # Git author used to commit to the repository. + # Defaults are shown. + commit_author: + name: apparitor + email: apparitor@users.noreply.github.com + folder: Formula + install: | + bin.install "pomerium" diff --git a/docs/docs/installation.md b/docs/docs/installation.md index 2f58648a8..22a6b43c5 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -20,8 +20,6 @@ Pomerium is shipped in multiple formats and architectures to suit a variety of d - Supported Operating Systems: `linux`, `darwin` - Supported Architectures: `amd64`, `arm64` -Pomerium releases include both the `pomerium` and `pomerium-cli` binaries. - ### Binaries Official binaries can be found on our [GitHub Releases](https://github.com/pomerium/pomerium/releases) page. @@ -30,7 +28,7 @@ Official binaries can be found on our [GitHub Releases](https://github.com/pomer ARCH=[your arch] OS=[your os] VERSION=[desired version] -curl -L https://github.com/pomerium/pomerium/releases/download/${VERSION}/pomerium-${OS}-${ARCH}.tar.gz \ +curl -L https://github.com/pomerium/pomerium/releases/download/${VERSION}/pomerium-${OS}-${ARCH}.tar.gz \ | tar -z -x ``` @@ -72,7 +70,7 @@ See the [README](https://github.com/pomerium/pomerium-helm/blob/master/charts/po ### Source ::: tip -Officially supported build platforms are limited by envoy proxy. If you have an +Officially supported build platforms are limited by envoy proxy. If you have an enoy binary for your platform in your path at start time, `pomerium` should function correctly. ::: @@ -96,7 +94,7 @@ Official binaries can be found on our [GitHub Releases](https://github.com/pomer ARCH=[your arch] OS=[your os] VERSION=[desired version] -curl -L https://github.com/pomerium/pomerium/releases/download/${VERSION}/pomerium-cli-${OS}-${ARCH}.tar.gz \ +curl -L https://github.com/pomerium/pomerium/releases/download/${VERSION}/pomerium-cli-${OS}-${ARCH}.tar.gz \ | tar -z -x ``` @@ -114,4 +112,4 @@ git clone git@github.com:pomerium/pomerium.git cd pomerium make ./bin/pomerium-cli --help -``` \ No newline at end of file +```