Skip to content

chore(deps): bump github.com/goreleaser/goreleaser/v2 (#276) #46

chore(deps): bump github.com/goreleaser/goreleaser/v2 (#276)

chore(deps): bump github.com/goreleaser/goreleaser/v2 (#276) #46

Workflow file for this run

name: Build Docker multiarch image on release
on:
workflow_dispatch:
push:
tags: [ 'v*' ]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
bake-images:
name: Build and push
runs-on: 'ubuntu-22.04'
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: 'linux/arm64,linux/amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.6.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Docker tags based on the following events/attributes
tags: |
type=schedule
type=ref,event=branch
type=semver,pattern={{raw}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Build and push Docker images
uses: docker/bake-action@v5.11.0
env:
TAGS: ${{ steps.meta.outputs.tags }}
LABELS: ${{ steps.meta.outputs.labels }}
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
push: ${{ github.event_name != 'pull_request' }}
pull: true
release-notes:
needs: [ bake-images ]
runs-on: 'ubuntu-22.04'
name: Release notes
steps:
- name: Set up go
uses: actions/setup-go@v5.2.0
with:
go-version: 1.23.x
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
- name: Run GoReleaser
if: success()
run: |
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}