Skip to content

Commit 693ebb4

Browse files
committed
ci(dicker): try to improve caching for smaller build size
1 parent 42cc5fc commit 693ebb4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ jobs:
7171
provenance: mode=max
7272
tags: ${{ steps.meta.outputs.tags }}
7373
labels: ${{ steps.meta.outputs.labels }}
74-
- name: Sign the Docker image
74+
cache-from: type=gha
75+
cache-to: type=gha,mode=max
76+
- name: Sign the Docker image
7577
if: github.ref == 'refs/heads/alpine'
7678
working-directory: ${{ env.IMAGE }}
7779
env:

.github/workflows/docker-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
provenance: mode=max
6464
tags: ${{ steps.meta.outputs.tags }}
6565
labels: ${{ steps.meta.outputs.labels }}
66+
cache-from: type=gha
67+
cache-to: type=gha,mode=max
6668
- name: Sign the Docker image
6769
working-directory: ${{ env.IMAGE }}
6870
env:

0 commit comments

Comments
 (0)