Skip to content

Commit bdfb637

Browse files
authored
Speed up Docker Builds (#710)
* Cache from the `latest` tag * Skips building images from scratch that had no changes * In the future we'll add change detection so we only build images that actually need to be built
1 parent a6b059f commit bdfb637

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/continuous-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ jobs:
137137
push: true
138138
tags: ${{ steps.meta.outputs.tags }}
139139
labels: ${{ steps.meta.outputs.labels }}
140-
cache-from: type=gha,scope=build-${{ matrix.image }}
140+
cache-from: |
141+
type=gha,scope=build-${{ matrix.image }}
142+
type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:latest
141143
cache-to: type=gha,mode=max,scope=build-${{ matrix.image }}
142144

143145
lint:

0 commit comments

Comments
 (0)