use latest release #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*.*" |