Skip to content

Commit 694ae35

Browse files
committed
ci: enhance Docker workflow and introduce sbom support
- Add build arguments, `VERSION` set to `latest` and `RELEASE` set to GitHub run number, in docker_publish_latest.yml workflow - Cache to registry instead of GitHub Actions to avoid the capacity limit - Enable Software Bill of Materials (sbom) and provenance during the Docker image build process Signed-off-by: 陳鈞 <[email protected]>
1 parent 696cb5b commit 694ae35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/docker_publish_latest.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,12 @@ jobs:
4343
target: final
4444
tags: ${{ steps.setup.outputs.tags }}
4545
labels: ${{ steps.setup.outputs.labels }}
46+
build-args: |
47+
VERSION=latest
48+
RELEASE=${{ github.run_number }}
4649
platforms: linux/amd64,linux/arm64
50+
# Cache to regietry instead of gha to avoid the capacity limit.
51+
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/yt-dlp:cache
52+
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/yt-dlp:cache,mode=max
53+
sbom: true
54+
provenance: true

0 commit comments

Comments
 (0)