-
Notifications
You must be signed in to change notification settings - Fork 8
43 lines (35 loc) · 1.03 KB
/
base-goreleaser-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Reusable GoReleaser CI workflow
on:
workflow_call:
inputs:
distribution:
required: true
type: string
jobs:
check-goreleaser:
name: Check GoReleaser Configuration for ${{ inputs.distribution }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64,ppc64le
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- uses: anchore/sbom-action/[email protected]
- name: Generate the sources
run: make generate-sources
- name: Run GoReleaser for ${{ inputs.distribution }}
uses: goreleaser/goreleaser-action@v5
with:
workdir: distributions/${{ inputs.distribution }}
version: latest
args: --snapshot --rm-dist --timeout 2h