From aed01e9d5b4abe9e999a68c1c00a189d72d94eab Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Fri, 21 Apr 2023 15:09:26 +0200 Subject: [PATCH] ci: docker build: enable GHA cache Signed-off-by: Marc 'risson' Schmitt --- .github/workflows/ci-main.yml | 4 ++++ .github/workflows/ci-outpost.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 105799a17..4ce31feb9 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -220,6 +220,8 @@ jobs: GIT_BUILD_HASH=${{ steps.ev.outputs.sha }} VERSION=${{ steps.ev.outputs.version }} VERSION_FAMILY=${{ steps.ev.outputs.versionFamily }} + cache-from: type=gha + cache-to: type=gha,mode=max - name: Comment on PR if: github.event_name == 'pull_request' continue-on-error: true @@ -266,3 +268,5 @@ jobs: VERSION=${{ steps.ev.outputs.version }} VERSION_FAMILY=${{ steps.ev.outputs.versionFamily }} platforms: linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/.github/workflows/ci-outpost.yml b/.github/workflows/ci-outpost.yml index fc5aec5ba..01fa32a14 100644 --- a/.github/workflows/ci-outpost.yml +++ b/.github/workflows/ci-outpost.yml @@ -99,6 +99,8 @@ jobs: VERSION_FAMILY=${{ steps.ev.outputs.versionFamily }} platforms: linux/amd64,linux/arm64 context: . + cache-from: type=gha + cache-to: type=gha,mode=max build-binary: timeout-minutes: 120 needs: