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 <