Skip to content

Commit d46ecc0

Browse files
authored
ci: add generating sboms to docker workflow (#26)
1 parent f658bee commit d46ecc0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ jobs:
5656
with:
5757
args: --build-tags client -p bugs -p unused --timeout=3m
5858

59+
- name: Set up Docker Buildx
60+
uses: docker/setup-buildx-action@v3
61+
5962
- name: Build and push image
6063
uses: docker/build-push-action@v6
6164
with:
6265
context: .
6366
push: true
64-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ (env.BRANCH_NAME == 'main' && 'latest') || env.BRANCH_NAME }}
67+
sbom: true
68+
tags: >
69+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ (env.BRANCH_NAME == 'main' && 'latest') || env.BRANCH_NAME }}

0 commit comments

Comments
 (0)