From c3526dcbec88dda3c477fa3b797d28741e5cf371 Mon Sep 17 00:00:00 2001 From: pasta Date: Fri, 21 Feb 2025 16:00:50 -0600 Subject: [PATCH] ci: push / cache docker images based on hash too --- .github/workflows/build-container.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 5f97cfbd394d4..f4f1010430dce 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -48,7 +48,11 @@ jobs: file: ./contrib/containers/ci/Dockerfile push: true tags: | + ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ hashFiles('./contrib/containers/ci/Dockerfile') }} ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ steps.prepare.outputs.tag }} ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:latest - cache-from: type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:latest + cache-from: | + type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ hashFiles('./contrib/containers/ci/Dockerfile') }} + type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:${{ steps.prepare.outputs.tag }} + type=registry,ref=ghcr.io/${{ steps.prepare.outputs.repo }}/dashcore-ci-runner:latest cache-to: type=inline