Skip to content

fix(clustertool): ensure CI pipelines work #36

fix(clustertool): ensure CI pipelines work

fix(clustertool): ensure CI pipelines work #36

name: clustertool-go-release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
tags:
- "*"
paths:
- 'clustertool/**'
jobs:
goreleaser:
runs-on: actions-runners
steps:
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version: stable
- name: Setup Golang caches
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
# - name: Install Syft
# run: sudo curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
fetch-depth: 0
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:
args: release --clean
distribution: goreleaser # or 'goreleaser-pro'
version: "~> v2" # or 'latest', 'nightly', semver
env:
GITHUB_TOKEN: "${{ secrets.BOT_TOKEN }}"