From 2eab071ccefdf0a961fd4665a3792fb7e15c31b7 Mon Sep 17 00:00:00 2001 From: Sebastian Choren Date: Thu, 11 Aug 2022 18:55:24 -0300 Subject: [PATCH] Update install cli script docs (#1060) --- .github/workflows/release-server.yml | 3 +- .goreleaser.yaml | 21 +++- docs/installing.md | 42 +++++++- install-cli.sh | 155 ++++++++++++++++----------- scripts/fury-upload.sh | 12 +++ 5 files changed, 163 insertions(+), 70 deletions(-) create mode 100755 scripts/fury-upload.sh diff --git a/.github/workflows/release-server.yml b/.github/workflows/release-server.yml index 89a568ae62..7f6499e4d2 100644 --- a/.github/workflows/release-server.yml +++ b/.github/workflows/release-server.yml @@ -83,13 +83,12 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: - distribution: goreleaser-pro + distribution: goreleaser version: latest workdir: ./cli/ args: release --rm-dist -f ../.goreleaser.yaml env: GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }} - GORELEASER_KEY: ${{ secrets.GORELEASER_LICENSE }} FURY_TOKEN: ${{ secrets.FURY_TOKEN }} helm_chart_version_bump: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bdb62d93fd..967bb15ec0 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,6 +19,13 @@ builds: - linux - windows - darwin + goarch: + - "386" + - amd64 + - arm + - arm64 + goarm: + - "7" archives: - replacements: 386: i386 @@ -33,14 +40,24 @@ nfpms: - id: tracetest vendor: Kubeshop homepage: https://tracetest.kubeshop.io/ + maintainer: Sebastian Choren license: MIT formats: - deb - rpm replacements: 386: i386 -furies: -- account: tracetest + deb: + lintian_overrides: + - statically-linked-binary + +publishers: + - name: fury.io + env: + - 'FURY_TOKEN={{ .Env.FURY_TOKEN }}' + # relative to cli/, where goreleaser runs from + cmd: ../scripts/fury-upload.sh {{ .ArtifactName }} + brews: - tap: owner: kubeshop diff --git a/docs/installing.md b/docs/installing.md index e94e4eb22c..1148f6aabb 100644 --- a/docs/installing.md +++ b/docs/installing.md @@ -94,19 +94,55 @@ helm delete tracetest ``` ## CLI Installation -Every time we release a new version of Tracetest, we generate binaries for Linux, MacOS, and Windows. Supporting both amd64, and ARM64 architectures. You can find the latest version [here](https://github.com/kubeshop/tracetest/releases/latest). +Every time we release a new version of Tracetest, we generate binaries for Linux, MacOS, and Windows. Supporting both amd64, and ARM64 architectures, in `tar.gz`, `deb`, `rpm` and `exe` formats +You can find the latest version [here](https://github.com/kubeshop/tracetest/releases/latest). -### Linux +### Linux/MacOS +Tracetest CLI can be installed automatically using the following script: ```sh curl -L https://raw.githubusercontent.com/kubeshop/tracetest/main/install-cli.sh | bash ``` -### MacOS +It works for systems with Hombrew, `apt-get`, `dpkg`, `yum`, `rpm` installed, and if no package manager is available, it will try to download the build and install it manually. + +You can also manually install with one of the following methods + +#### Homebrew ```sh brew install kubeshop/tracetest/tracetest ``` +#### apt + +```sh +# requirements for our deb repo to work +sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates + +# add repo +echo "deb [trusted=yes] https://apt.fury.io/tracetest/ /" | sudo tee /etc/apt/sources.list.d/fury.list + +# update and install +sudo apt-get update +sudo apt-get install tracetest +``` + +#### yum + +```sh +# add repository +cat <