chore: add sbom and provenance for docker build
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
dffcf68a7a
commit
1d58c7e30d
|
|
@ -86,6 +86,8 @@ jobs:
|
|||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
|
||||
with:
|
||||
context: .
|
||||
sbom: true
|
||||
provenance: true
|
||||
platforms: ${{ matrix.platforms }}
|
||||
file: build/images/${{ matrix.module }}/Dockerfile
|
||||
labels: |-
|
||||
|
|
@ -124,14 +126,6 @@ jobs:
|
|||
env:
|
||||
COSIGN_PUBLIC_KEY: ${{ secrets.COSIGN_PUBLIC_KEY }}
|
||||
|
||||
- uses: anchore/sbom-action@v0
|
||||
with:
|
||||
image: dragonflyoss/${{ matrix.module }}:${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
- uses: anchore/sbom-action@v0
|
||||
with:
|
||||
image: ghcr.io/${{ env.IMAGE_REPOSITORY }}/${{ matrix.module }}:${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
- name: Move cache
|
||||
run: |
|
||||
rm -rf /tmp/.buildx-cache
|
||||
|
|
|
|||
Loading…
Reference in New Issue