ci: add --no-cache to bypass stale build cache causing FileLoadException

Removing <RuntimeIdentifier> from the csproj changed the publish layout,
but the old registry build cache still contains the RID-poisoned layers.
Subsequent builds cached at the COPY/RUN layer boundary reuse those stale
layers, causing FileLoadException at runtime.

Add --no-cache to both API and Web buildx invocations so every build
produces fresh layers. Once the pipeline stabilizes, we can re-enable
cache-from with the updated cache tag.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-03 16:08:41 +08:00
co-authored by Claude Opus 4.8
parent bcba0d752b
commit 83f16757e7
Vendored
+2 -2
View File
@@ -143,7 +143,7 @@ pipeline {
--network host \ --network host \
--progress=plain \ --progress=plain \
--provenance=false \ --provenance=false \
--cache-from type=registry,ref=${API_CACHE_IMAGE} \ --no-cache \
--build-arg HTTP_PROXY=${HTTP_PROXY_URL} \ --build-arg HTTP_PROXY=${HTTP_PROXY_URL} \
--build-arg HTTPS_PROXY=${HTTP_PROXY_URL} \ --build-arg HTTPS_PROXY=${HTTP_PROXY_URL} \
--build-arg NO_PROXY=${NO_PROXY_HOSTS} \ --build-arg NO_PROXY=${NO_PROXY_HOSTS} \
@@ -253,7 +253,7 @@ pipeline {
--network host \ --network host \
--progress=plain \ --progress=plain \
--provenance=false \ --provenance=false \
--cache-from type=registry,ref=${WEB_CACHE_IMAGE} \ --no-cache \
--build-arg NODE_IMAGE=${WEB_NODE_IMAGE} \ --build-arg NODE_IMAGE=${WEB_NODE_IMAGE} \
--build-arg NGINX_IMAGE=${WEB_NGINX_IMAGE} \ --build-arg NGINX_IMAGE=${WEB_NGINX_IMAGE} \
--build-arg HTTP_PROXY=${HTTP_PROXY_URL} \ --build-arg HTTP_PROXY=${HTTP_PROXY_URL} \