Skip to content

Merge pull request #298 from Shopify/dependabot/docker/alpine-1e42bbe #17

Merge pull request #298 from Shopify/dependabot/docker/alpine-1e42bbe

Merge pull request #298 from Shopify/dependabot/docker/alpine-1e42bbe #17

Workflow file for this run

name: Release
on:
push:
tags: [ 'v*.*.*' ]
permissions: {}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
with:
fetch-depth: 0
- name: Get latest Go version
id: gover
run: echo goversion=$(grep "AS apk" Dockerfile.test | awk -F':|-' '!/^#/ {print $2}') >> "$GITHUB_OUTPUT"
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # tag=v5.1.0
with:
go-version: "${{ steps.gover.outputs.goversion }}"
- name: Set up Cosign
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # tag=v3.7.0
- uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # tag=v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Release
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # tag=v6.1.0
with:
distribution: goreleaser
version: v2.0.1
args: release --clean --parallelism=1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}