From 40db8f6602c6d17dd2c79236334a06e7f7904639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 30 Mar 2025 19:10:58 +0200 Subject: [PATCH] add gha cache. --- .github/workflows/ghcr_intel.yml | 2 +- .github/workflows/ghcr_nvidia.yml | 2 +- .github/workflows/image_app.yml | 2 ++ .github/workflows/image_base.yml | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ghcr_intel.yml b/.github/workflows/ghcr_intel.yml index ddaeeb43..1bc93a31 100644 --- a/.github/workflows/ghcr_intel.yml +++ b/.github/workflows/ghcr_intel.yml @@ -41,6 +41,6 @@ jobs: with: name: ${{ matrix.name }} flavor: intel - platforms: linux/amd64 + platforms: ${{ matrix.platforms }} dockerfile: ${{ matrix.dockerfile }} secrets: inherit diff --git a/.github/workflows/ghcr_nvidia.yml b/.github/workflows/ghcr_nvidia.yml index a068f7ef..594241d3 100644 --- a/.github/workflows/ghcr_nvidia.yml +++ b/.github/workflows/ghcr_nvidia.yml @@ -37,6 +37,6 @@ jobs: with: name: ${{ matrix.name }} flavor: nvidia - platforms: linux/amd64 + platforms: ${{ matrix.platforms }} dockerfile: ${{ matrix.dockerfile }} secrets: inherit diff --git a/.github/workflows/image_app.yml b/.github/workflows/image_app.yml index d9a715aa..e3a99ac5 100644 --- a/.github/workflows/image_app.yml +++ b/.github/workflows/image_app.yml @@ -71,3 +71,5 @@ jobs: build-args: | BASE_IMAGE=ghcr.io/${{ github.repository }}/${{ env.FLAVOR_PREFIX }}base:sha-${{ github.sha }} platforms: ${{ inputs.platforms || 'linux/amd64' }} + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/.github/workflows/image_base.yml b/.github/workflows/image_base.yml index 6a156390..796cdb8e 100644 --- a/.github/workflows/image_base.yml +++ b/.github/workflows/image_base.yml @@ -80,3 +80,5 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} platforms: ${{ inputs.platforms || 'linux/amd64' }} + cache-from: type=gha + cache-to: type=gha,mode=max