Skip to content

Commit 7edf870

Browse files
authored
Add caching support for Docker builds in GitHub Actions (#6)
1 parent ee75a22 commit 7edf870

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/BuildDockerImage.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ jobs:
3838
context: .
3939
platforms: linux/amd64,linux/arm64
4040
push: false
41+
cache-from: type=gha
42+
cache-to: type=gha,mode=max
4143
tags: ${{ steps.meta.outputs.tags }}
4244
labels: ${{ steps.meta.outputs.labels }}

‎.github/workflows/PublishDockerImage.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
context: .
5656
platforms: linux/amd64,linux/arm64
5757
push: true
58+
cache-from: type=gha
59+
cache-to: type=gha,mode=max
5860
tags: ${{ steps.meta.outputs.tags }}
5961
labels: ${{ steps.meta.outputs.labels }}
6062

0 commit comments

Comments
 (0)