-
Notifications
You must be signed in to change notification settings - Fork 30
58 lines (47 loc) · 1.28 KB
/
snapshot.yml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: snapshot
on:
push:
branches:
- main
- provenance
paths-ignore:
- "**/*.asciidoc"
- "**/*.md"
- "**/*.png"
env:
DOCKER_BUILDKIT: 1
DOCKER_REGISTRY: docker.elastic.co
DOCKER_IMAGE_NAME: observability/apm-lambda-extension
permissions:
contents: write
id-token: write
pull-requests: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
- uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64, linux/amd64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# See https://goreleaser.com/blog/supply-chain-security/
- name: installs syft for generating the SBOM with goreleaser
uses: anchore/sbom-action/[email protected]
- name: Snapshot
run: make snapshot
- name: generate build provenance (binaries)
uses: github-early-access/generate-build-provenance@main
with:
subject-path: "${{ github.workspace }}/dist/*.*"
- uses: actions/upload-artifact@v4
with:
name: snapshots
path: "dist/*.*"