Skip to content

Commit

Permalink
chore: enables github docker cache (#8187)
Browse files Browse the repository at this point in the history
So, since we updated to build-push-action@v6 we're now getting a nice
summary of the build on the summary page of the action. It pointed out
that we're caching 0% of our docker build. Since we probably change our
own code more often than we change our dependencies, sharing the initial
yarn install step between builds from cache seems to be a good idea.
  • Loading branch information
chriswk committed Sep 19, 2024
1 parent aa7757a commit 6d51213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: NODE_VERSION=${{ matrix.version }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 6d51213

Please sign in to comment.