Use GitHub cache backend for docker builds

This commit is contained in:
chowder
2023-04-02 12:58:40 +01:00
parent 7253b09b62
commit bee65d45c7

View File

@@ -26,6 +26,7 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
@@ -40,11 +41,13 @@ jobs:
uses: docker/build-push-action@v4.0.0
with:
context: .
push: true
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
build-args: BUILDX_QEMU_ENV=true
cache-from: type=gha
cache-to: type=gha,mode=max
# File size exceeds the maximum allowed 25000 bytes
# - name: Docker Hub Description