This commit is contained in:
Daan Selen 2025-06-04 10:27:11 +02:00
parent 15c12a81f1
commit 84167650b8

View File

@ -53,6 +53,11 @@ jobs:
images: | images: |
${{ env.DOCKER_HUB_PREFIX }}/${{ env.DOCKER_IMAGE }} ${{ env.DOCKER_HUB_PREFIX }}/${{ env.DOCKER_IMAGE }}
${{ env.GHCR_PREFIX }}/${{ env.DOCKER_IMAGE }} ${{ env.GHCR_PREFIX }}/${{ env.DOCKER_IMAGE }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern=latest,enable={{is_tag}}
type=raw,value=nightly,enable={{is_default_branch}}
type=ref,pattern={{ref_name}},enable={{is_default_branch}}
- name: Build and export (multi-arch) - name: Build and export (multi-arch)
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@ -72,7 +77,7 @@ jobs:
uses: docker/scout-action@v1 uses: docker/scout-action@v1
with: with:
command: cves command: cves
image: ${{ needs.docker_build.outputs.image-tags }} image: ${{ env.GHCR_PREFIX }}/${{ env.DOCKER_IMAGE }}:nightly
only-severities: critical,high only-severities: critical,high
only-fixed: true only-fixed: true
write-comment: true write-comment: true
@ -83,8 +88,8 @@ jobs:
uses: docker/scout-action@v1 uses: docker/scout-action@v1
with: with:
command: compare command: compare
image: ${{ env.DOCKER_HUB_PREFIX }}/${{ env.DOCKER_IMAGE }}:nightly image: ${{ env.GHCR_PREFIX }}/${{ env.DOCKER_IMAGE }}:nightly
to: ${{ env.DOCKER_HUB_PREFIX }}/${{ env.DOCKER_IMAGE }}:latest to: ${{ env.GHCR_PREFIX }}/${{ env.DOCKER_IMAGE }}:latest
only-severities: critical,high only-severities: critical,high
ignore-unchanged: true ignore-unchanged: true
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}