Skip to content

Commit

Permalink
.github: Enable caching for docker builds
Browse files Browse the repository at this point in the history
and use default (git) context.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
  • Loading branch information
jepio committed Mar 20, 2024
1 parent ac5c4b5 commit 94bccea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
build-args: BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
push: true
platforms: linux/amd64,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 94bccea

Please sign in to comment.