feat: added image build cache to workflow

This commit is contained in:
etiennecollin
2025-08-16 22:40:48 -04:00
parent ca94b4ce4d
commit 84b03faa9b

View File

@@ -28,7 +28,7 @@ jobs:
with: with:
images: | images: |
${{ vars.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} ${{ vars.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
ghcr.io/${{ vars.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr
@@ -74,3 +74,7 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }} annotations: ${{ steps.meta.outputs.annotations }}
provenance: true provenance: true
sbom: true sbom: true
cache-from: |
type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache
cache-to: |
type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:buildcache,mode=max