Skip to content

Merge pull request #204 from stackitcloud/renovate/all-minor-patch #24

Merge pull request #204 from stackitcloud/renovate/all-minor-patch

Merge pull request #204 from stackitcloud/renovate/all-minor-patch #24

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions: read-all
jobs:
release:
permissions:
id-token: write
packages: write
contents: write
runs-on: ubuntu-latest
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Git Fetch
run: git fetch --force --tags
- name: Setup go
uses: actions/setup-go@v6
with:
go-version: stable
- uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
- uses: anchore/sbom-action/download-syft@e22c389904149dbc22b58101806040fa8d37a610 # v0.24.0
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Set up Cosign
uses: sigstore/cosign-installer@v4.1.2
- name: Login to Registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Release with Goreleaser
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}