summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/publish.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ce4bb81e9..786e66207 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -104,6 +104,12 @@ jobs:
context: .
file: ${{ matrix.image.dockerfile }}
platforms: linux/arm64,linux/amd64
+ cache-from: |
+ type=gha,scope=${{ matrix.image.name }}
+ type=registry,ref=${{ matrix.image.repository_ghcr }}:cache
+ cache-to: |
+ type=gha,scope=${{ matrix.image.name }},mode=max
+ type=registry,ref=${{ matrix.image.repository_ghcr }}:cache,mode=max
# TODO: clean up build arg and environment variable naming.
build-args: |
CI_COMMIT_BRANCH=${{ github.ref_name }}