From 5970efbb7ca71daafa298e59364f171fcc3be2c8 Mon Sep 17 00:00:00 2001 From: Zyy Date: Sat, 15 Aug 2026 18:22:20 +0800 Subject: [PATCH] fix(container): refresh runtime packages before scans Co-authored-by: Codex --- .github/workflows/_container.yml | 3 +++ .github/workflows/release.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/_container.yml b/.github/workflows/_container.yml index ed26a4f2c..30b433755 100644 --- a/.github/workflows/_container.yml +++ b/.github/workflows/_container.yml @@ -55,6 +55,9 @@ jobs: target: runtime load: true tags: ${{ env.CPR_IMAGE }} + no-cache-filters: | + runtime-base + runtime cache-from: type=gha,scope=runtime-ci cache-to: type=gha,mode=max,scope=runtime-ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cbb949687..733f8f436 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -468,6 +468,9 @@ jobs: push: true build-args: | CPR_PREBUILT_DIR=dist/docker + no-cache-filters: | + runtime-base + runtime-prebuilt cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ matrix.os }}-${{ matrix.arch }} cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache-${{ matrix.os }}-${{ matrix.arch }},mode=min provenance: mode=max