Skip to content

Commit 50f2eb6

Browse files
authored
ci: add generating sboms in docker workflow (#181)
1 parent 00d9e1f commit 50f2eb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,15 @@ jobs:
7878
[ "${GITHUB_EVENT_NAME}" == 'release' ] && echo "tag=${GITHUB_REF##*/}" >> $GITHUB_ENV || true
7979
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
8080
81+
- name: Set up Docker Buildx
82+
uses: docker/setup-buildx-action@v3
83+
8184
- name: Build and push image
8285
uses: docker/build-push-action@v6
8386
with:
8487
context: .
8588
push: true
89+
sbom: true
8690
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
8791

8892
bench:
@@ -118,4 +122,4 @@ jobs:
118122
external-data-json-path: ./cache/benchmark-data.json
119123
# GitHub API token to make a commit comment
120124
github-token: ${{ secrets.GITHUB_TOKEN }}
121-
fail-on-alert: true
125+
fail-on-alert: true

0 commit comments

Comments
 (0)