fix(ci): 移除构建脚本中docker driver不支持的--cache-to导出 #302

Merged
xiaoxia merged 1 commits from fix/build-cache-to-driver into develop 2026-07-14 09:04:18 +08:00
Owner

问题

Build & Push Staging 失败,报错:

ERROR: Cache export is not supported for the docker driver.

Runner 使用的是默认 docker driver,不支持 --cache-to 导出缓存到 registry。

修复

移除 API/Worker/Web 三段直接构建中的 --cache-to 参数,只保留 --cache-from 读取缓存。

build_with_cache 函数中的缓存导出逻辑不变(通过 CACHE_WRITE 变量控制,默认为0即不写回)。

## 问题 Build & Push Staging 失败,报错: ``` ERROR: Cache export is not supported for the docker driver. ``` Runner 使用的是默认 docker driver,不支持 `--cache-to` 导出缓存到 registry。 ## 修复 移除 API/Worker/Web 三段直接构建中的 `--cache-to` 参数,只保留 `--cache-from` 读取缓存。 `build_with_cache` 函数中的缓存导出逻辑不变(通过 `CACHE_WRITE` 变量控制,默认为0即不写回)。
xiaoxia added 1 commit 2026-07-14 09:01:46 +08:00
fix(ci): 移除build_release_images.sh中直接构建部分的--cache-to,docker driver不支持导出缓存到registry
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 32s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 51s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Unit Tests (pull_request) Successful in 58s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m7s
CI/CD Pipeline / Validate Code Quality And Tests (push) Successful
CI/CD Pipeline / Frontend Lint (push) Successful
0444be9c6d
xiaoxia force-pushed fix/build-cache-to-driver from b9c792013c to 0444be9c6d 2026-07-14 09:01:46 +08:00 Compare
xiaoxia merged commit 17fbae13a8 into develop 2026-07-14 09:04:18 +08:00
Sign in to join this conversation.