Skip to content

Commit 64953f1

Browse files
Merge pull request #559 from navapbc/mqwebster/dep-upgrades
fix: update build cache type
2 parents 2cf415f + c38042c commit 64953f1

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,11 @@ jobs:
179179
platforms: linux/amd64,linux/arm64
180180
tags: ${{ steps.meta.outputs.tags }}
181181
labels: ${{ steps.meta.outputs.labels }}
182-
cache-from: type=gha
183-
cache-to: type=gha,mode=min
182+
# Registry cache (ghcr) instead of type=gha: the GitHub Actions Cache
183+
# service's reserveCache call fails in CI ("failed to reserve cache").
184+
# This uses the same registry we already push images to.
185+
cache-from: type=registry,ref=${{ inputs.server-image-registry }}/${{ inputs.server-image-name }}:buildcache
186+
cache-to: type=registry,ref=${{ inputs.server-image-registry }}/${{ inputs.server-image-name }}:buildcache,mode=max,image-manifest=true,oci-mediatypes=true
184187
provenance: true
185188
sbom: true
186189
build-args: |
@@ -314,8 +317,11 @@ jobs:
314317
platforms: linux/amd64,linux/arm64
315318
tags: ${{ steps.meta.outputs.tags }}
316319
labels: ${{ steps.meta.outputs.labels }}
317-
cache-from: type=gha
318-
cache-to: type=gha,mode=min
320+
# Registry cache (ghcr) instead of type=gha: the GitHub Actions Cache
321+
# service's reserveCache call fails in CI ("failed to reserve cache").
322+
# This uses the same registry we already push images to.
323+
cache-from: type=registry,ref=${{ inputs.server-image-registry }}/${{ inputs.arpa-exporter-image-name }}:buildcache
324+
cache-to: type=registry,ref=${{ inputs.server-image-registry }}/${{ inputs.arpa-exporter-image-name }}:buildcache,mode=max,image-manifest=true,oci-mediatypes=true
319325
provenance: true
320326
sbom: true
321327
- name: Publish build results

0 commit comments

Comments
 (0)