Commit 4df2cdf
committed
Add Docker layer caching to improve build performance
Implements GitHub Actions cache backend (type=gha) for Docker layer caching in both workflows:
**update-current-image.yml:**
- Added cache-from: type=gha to both 'Build' and 'Build and push Image' steps
- Added cache-to: type=gha,mode=max to store full cache for reuse
**dockerimage.yml:**
- Added cache-from: type=gha to 'Build Image' step
- Added cache-to: type=gha,mode=max for caching Docker layers
**Benefits:**
- Reuses Docker layers across builds
- Significantly faster builds when layers haven't changed
- No external infrastructure needed (uses GitHub Actions cache)
- Cache is scoped per workflow run context1 parent dc01aa0 commit 4df2cdf
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| 147 | + | |
| 148 | + | |
0 commit comments