Use GHA caching for Docker buildx.
This commit is contained in:
parent
4205eeae09
commit
7538d188a8
|
@ -117,6 +117,12 @@ jobs:
|
||||||
bash util/write_git_info.sh
|
bash util/write_git_info.sh
|
||||||
chmod 777 .gitinfo
|
chmod 777 .gitinfo
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
id: qemu
|
||||||
|
with:
|
||||||
|
platforms: arm64
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
@ -126,7 +132,9 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
load: true
|
load: true
|
||||||
tags: ghcr.io/azuracast/azuracast:latest
|
tags: ghcr.io/azuracast/azuracast:latest
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
cache-from: type=registry,ref=ghcr.io/azuracast/azuracast:buildcache
|
cache-from: type=registry,ref=ghcr.io/azuracast/azuracast:buildcache
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Set up functional test environment.
|
- name: Set up functional test environment.
|
||||||
run: |
|
run: |
|
||||||
|
@ -220,5 +228,5 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
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
|
cache-to: type=registry,ref=ghcr.io/azuracast/azuracast:buildcache,mode=max
|
||||||
|
|
Loading…
Reference in New Issue