Skip to content

Commit

Permalink
Cache to registry image instead of gha (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Jul 5, 2024
1 parent 730f75a commit b72eaad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
target: final
cache-from: type=gha
cache-to: ${{ github.event_name == 'release' && 'type=gha' || '' }}
cache-from: type=registry,ref=ghcr.io/esphome/docker-base:cache
cache-to: ${{ github.event_name == 'release' && 'type=registry,ref=ghcr.io/esphome/docker-base:cache' || '' }}
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/esphome/docker-base:${{ steps.get_tag.outputs.version }}

0 comments on commit b72eaad

Please sign in to comment.