personal master outside of original main #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: ./go.mod | |
check-latest: true | |
- name: Set up QEMU | |
uses: docker/[email protected] | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Install GoReleaser | |
uses: goreleaser/[email protected] | |
with: | |
install-only: true | |
- name: Install cosign | |
uses: sigstore/[email protected] | |
- name: Install syft | |
uses: anchore/sbom-action/[email protected] | |
- name: Cache | |
uses: actions/[email protected] | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- uses: chainguard-dev/actions/goimports@main | |
- name: Login to registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Run Mage | |
uses: magefile/mage-action@v3 | |
with: | |
args: -v release | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |