Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

ci: clean up publish_docker workflow (#838)

Daniel Gatisc3eda4cacfca
diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml
index 2356046..4b4ea2a 100644
--- a/.github/workflows/publish_docker.yml
+++ b/.github/workflows/publish_docker.yml
@@ -25,7 +25,6 @@ jobs:
${{ secrets.DOCKER_HUB_USERNAME }}/rembg
# generate Docker tags based on the following events/attributes
tags: |
- type=ref,event=branch
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
@@ -50,7 +49,9 @@ jobs:
with:
context: .
platforms: linux/amd64
- push: ${{ github.event_name != 'pull_request' }}
+ push: true
+ # mode=max records build args in the provenance attestation.
+ # Safe while the Dockerfile declares no ARG; revisit if one is added.
provenance: mode=max
sbom: true
tags: ${{ steps.meta.outputs.tags }}