diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index fc4bfbf..41b6e6f 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -589,15 +589,23 @@ jobs: # sarif_file: trivy-ghcr.sarif # category: Image Vulnerability Scan - - name: Build binaries + #- name: Build binaries + # env: + # CGO_ENABLED: "0" + # GOFLAGS: "-trimpath" + # run: | + # set -euo pipefail + # TAG_VAR="${TAG}" + # make -j 10 go-build-release tag=$TAG_VAR + # shell: bash + + - name: Run GoReleaser (binaries + deb/rpm/apk) + uses: goreleaser/goreleaser-action@v6 + with: + version: latest + args: release --clean env: - CGO_ENABLED: "0" - GOFLAGS: "-trimpath" - run: | - set -euo pipefail - TAG_VAR="${TAG}" - make -j 10 go-build-release tag=$TAG_VAR - shell: bash + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create GitHub Release uses: softprops/action-gh-release@5be0e66d93ac7ed76da52eca8bb058f665c3a5fe # v2.4.2