From 50c8ab7b8be07ae8bb71ebcef9e73a29b348bfc7 Mon Sep 17 00:00:00 2001 From: "Tomi P. Hakala" Date: Thu, 16 Jan 2025 16:38:38 +0200 Subject: [PATCH] chore: enhance release build workflow with Docker caching and build arguments - Added caching configuration for Docker builds to optimize build times and resource usage. - Introduced build arguments to specify target and build platforms, improving flexibility for multi-platform builds. - These changes aim to streamline the release process and enhance the efficiency of Docker image creation. --- .github/workflows/release-build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 2a52a3d..0365411 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -134,3 +134,10 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: ${{ matrix.platform }} + cache-from: type=gha + cache-to: type=gha,mode=max + provenance: false + build-args: | + TARGETPLATFORM=${{ matrix.platform }} + BUILDPLATFORM=${{ matrix.platform }}