Skip to content

Pass digest to docker_sign #17

Pass digest to docker_sign

Pass digest to docker_sign #17

Workflow file for this run

name: goreleaser
on:
push:
# run only against tags
tags:
- '*'
permissions:
contents: write
packages: write
id-token: write
# issues: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Fetch previous tags
run: git fetch --force --tags
-
name: Download latest syft version
uses: anchore/sbom-action/download-syft@v0
-
name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.19.4'
cache: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Install Cosign
uses: sigstore/cosign-installer@v3
-
name: Run Goreleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}