Skip to content

Commit

Permalink
Speed up Docker Builds (#710)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
rblaine95 authored Mar 26, 2024
1 parent a6b059f commit bdfb637
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha,scope=build-${{ matrix.image }}
cache-from: |
type=gha,scope=build-${{ matrix.image }}
type=registry,ref=ghcr.io/${{ github.repository_owner }}/${{ matrix.image }}:latest
cache-to: type=gha,mode=max,scope=build-${{ matrix.image }}

lint:
Expand Down

0 comments on commit bdfb637

Please sign in to comment.