diff --git a/.github/workflows/branch-build.yml b/.github/workflows/branch-build.yml index 5b39d107f..84635124b 100644 --- a/.github/workflows/branch-build.yml +++ b/.github/workflows/branch-build.yml @@ -159,7 +159,7 @@ jobs: key: ${{ runner.os }}-botkube-cli - name: Build CLI - run: make release-snapshot-cli + run: make build-single-arch-cli - name: Add Botkube CLI to env run: | @@ -225,7 +225,7 @@ jobs: access_token: ${{ secrets.E2E_TEST_GH_DEV_ACCOUNT_PAT }} username: ${{ env.GIT_USER }} - name: Run GoReleaser - run: make release-snapshot-cli + run: make build-single-arch-cli - name: Add botkube alias run: | echo BOTKUBE_BINARY_PATH="$PWD/dist/botkube-cli_linux_amd64_v1/botkube" >> $GITHUB_ENV diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index a7b08ffc4..63e7f0c00 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -273,7 +273,7 @@ jobs: key: ${{ runner.os }}-botkube-cli - name: Build CLI - run: make release-snapshot-cli + run: make build-single-arch-cli - name: Add Botkube CLI to env run: | diff --git a/Makefile b/Makefile index ecc5a1e6c..0eb939ff3 100644 --- a/Makefile +++ b/Makefile @@ -64,8 +64,11 @@ container-image-single: pre-build release-snapshot: @./hack/goreleaser.sh release_snapshot +build-single-arch-cli: + @./hack/goreleaser.sh build_single_arch_cli + release-snapshot-cli: - @./hack/goreleaser.sh release_snapshot_cli + @./hack/goreleaser.sh build_single_arch_cli # Build project and save images with IMAGE_TAG tag save-images: diff --git a/hack/goreleaser.sh b/hack/goreleaser.sh index 35e5deafb..5dd84f30c 100755 --- a/hack/goreleaser.sh +++ b/hack/goreleaser.sh @@ -43,10 +43,9 @@ release_snapshot() { docker manifest push ${IMAGE_REGISTRY}/${CFG_EXPORTER_IMAGE_REPOSITORY}:${GORELEASER_CURRENT_TAG} } -release_snapshot_cli() { - prepare +build_single_arch_cli() { export GORELEASER_CURRENT_TAG=v9.99.9-dev - goreleaser build --clean --snapshot --id botkube-cli + goreleaser build --clean --snapshot --id botkube-cli --single-target } save_images() { @@ -247,7 +246,7 @@ build_single() { usage() { cat <