Skip to content

Commit d8be823

Browse files
only use gha cache
1 parent 2a14762 commit d8be823

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: |
3232
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
3333
sudo docker image prune --all --force
34-
sudo docker builder prune -a
34+
sudo docker builder prune -af
3535
- run: df -h
3636

3737
- name: Checkout
@@ -58,8 +58,8 @@ jobs:
5858
platforms: linux/amd64
5959
push: ${{ github.event_name == 'push' }}
6060
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:amd64-${{ github.sha }}
61-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
62-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max,compression=zstd,oci-mediatypes=true
61+
cache-from: type=gha,scope=${{ github.workflow }}-${{ runner.os }}-amd64
62+
cache-to: type=gha,mode=min,scope=${{ github.workflow }}-${{ runner.os }}-amd64
6363
provenance: false
6464
sbom: false
6565
secrets: |
@@ -72,8 +72,8 @@ jobs:
7272
platforms: linux/arm64
7373
push: ${{ github.event_name == 'push' }}
7474
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:arm64-${{ github.sha }}
75-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
76-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max,compression=zstd,oci-mediatypes=true
75+
cache-from: type=gha,scope=${{ github.workflow }}-${{ runner.os }}-arm64
76+
cache-to: type=gha,mode=min,scope=${{ github.workflow }}-${{ runner.os }}-arm64
7777
provenance: false
7878
sbom: false
7979
secrets: |

0 commit comments

Comments
 (0)