Skip to content

Commit

Permalink
Add cache configuration for Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdlzg committed Jun 18, 2024
1 parent 2beca1d commit 1a95e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ jobs:
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Build and push Docker images
uses: docker/build-push-action@v3
Expand All @@ -91,5 +93,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit 1a95e99

Please sign in to comment.