From ee3c2926991048781c59a3631013c47ade67f4be Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Mon, 6 Sep 2021 14:15:08 +0200 Subject: [PATCH] Add homebrew tap (#110) * test homebrew task * secret HOMEBREW_TAP_GITHUB_TOKEN * prepare for pr * use homebrew-client * add brew install --- .github/workflows/release.yml | 1 + .goreleaser.yaml | 18 +++++++++++++++++- README.md | 7 +++++++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a14727116..7b6ee1edc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,7 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }} - id: get_version uses: battila7/get-version-action@v2 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 803a55459..03a4c5298 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -181,4 +181,20 @@ docker_manifests: - name_template: wiretrustee/management:debug-latest image_templates: - wiretrustee/management:{{ .Version }}-debug-arm64v8 - - wiretrustee/management:{{ .Version }}-debug-amd64 \ No newline at end of file + - wiretrustee/management:{{ .Version }}-debug-amd64 + +brews: + - + tap: + owner: wiretrustee + name: homebrew-client + token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + commit_author: + name: Wiretrustee + email: wiretrustee@wiretrustee.com + description: Wiretrustee project. + download_strategy: CurlDownloadStrategy + homepage: https://wiretrustee.com/ + license: "BSD3" + test: | + system "#{bin}/{{ .ProjectName }} -h" \ No newline at end of file diff --git a/README.md b/README.md index f26242b9a..4a3349547 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,13 @@ wget https://github.com/wiretrustee/wiretrustee/releases/download/v/wir sudo rpm -i wiretrustee__linux_amd64.rpm ``` #### MACOS +**Brew install** +1. Download and install Brew at https://brew.sh/ +2. Install the client +```shell +brew install wiretrustee/client/wiretrustee +``` +**Download binary** 1. Checkout Wiretrustee [releases](https://github.com/wiretrustee/wiretrustee/releases/latest) 2. Download the latest release (**Switch VERSION to the latest**): ```shell