Use GHA caching for Docker buildx.

This commit is contained in:
Buster Neece 2023-02-03 15:35:45 -06:00
parent 4205eeae09
commit 7538d188a8
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 9 additions and 1 deletions

View File

@ -117,6 +117,12 @@ jobs:
bash util/write_git_info.sh
chmod 777 .gitinfo
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
id: qemu
with:
platforms: arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
@ -126,7 +132,9 @@ jobs:
context: .
load: true
tags: ghcr.io/azuracast/azuracast:latest
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=ghcr.io/azuracast/azuracast:buildcache
cache-to: type=gha,mode=max
- name: Set up functional test environment.
run: |
@ -220,5 +228,5 @@ jobs:
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=ghcr.io/azuracast/azuracast:buildcache
cache-from: type=gha
cache-to: type=registry,ref=ghcr.io/azuracast/azuracast:buildcache,mode=max