Skip to content

Commit

Permalink
Allow Docker workflow caching multi-arch separately
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoResonance committed Jan 19, 2025
1 parent 20e46b5 commit ed1473f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
VERSION=${{ steps.build_info.outputs.version_tag }}
labels: ${{ steps.docker_meta.outputs.labels }}
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=gha,scope=tagged${{ matrix.os }}
cache-to: type=gha,scope=tagged${{ matrix.os }},mode=max

- name: Build and Push (main)
uses: docker/build-push-action@v6
Expand All @@ -82,5 +84,5 @@ jobs:
VERSION=dev-${{ steps.build_info.outputs.short_sha }}
labels: ${{ steps.docker_meta.outputs.labels }}
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=gha,scope=${{ matrix.os }}
cache-to: type=gha,scope=${{ matrix.os }},mode=max

0 comments on commit ed1473f

Please sign in to comment.