From e73e1bfdc3a78bd831911ae31921257103cd1fdc Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 15 Dec 2023 09:22:13 +0100 Subject: [PATCH] Populate the cache with the latest image (#4988) * Pull the latest image and print info * Pull latest from registry to populate the cache * Don't pull image --- .github/workflows/cd.yml | 1 + .github/workflows/ci.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 274f427e..78f24569 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -117,6 +117,7 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ env.BUILD_REVISION }} BUILD_VERSION=${{ env.BUILD_VERSION }} + cache-from: type=registry,ref=${{ env.CONTAINER_IMAGE_ID }} load: false push: true secrets: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66670a83..8b634e20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,7 @@ jobs: BUILD_DATE=${{ env.BUILD_DATE }} BUILD_REVISION=${{ env.BUILD_REVISION }} BUILD_VERSION=${{ env.BUILD_VERSION }} + cache-from: type=registry,ref=${{ env.CONTAINER_IMAGE_ID }} load: true push: false secrets: |