Skip to content

Commit

Permalink
Enhanced docker build caching
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Sep 2, 2024
1 parent 8b62478 commit b6812d0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
with:
platforms: linux/${{ matrix.arch }}
push: false
cache-from: type=gha
cache-to: type=gha
cache-from: |
type=gha,scope=docker-build-polkadot-${{ matrix.arch }}
cache-to: |
type=gha,mode=max,scope=docker-build-polkadot-${{ matrix.arch }}
context: .
package:
needs: [build]
Expand Down Expand Up @@ -61,6 +63,9 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
cache-from: type=gha
cache-to: type=gha
cache-from: |
type=gha,scope=docker-build-polkadot
type=gha,scope=docker-build-polkadot-amd64
cache-to: |
type=gha,mode=max,scope=docker-build-polkadot
context: .

0 comments on commit b6812d0

Please sign in to comment.