fix(cd): use harbor mirror for web base image
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m0s
CD Pipeline / build-and-deploy (push) Failing after 40s
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m0s
CD Pipeline / build-and-deploy (push) Failing after 40s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -1625,6 +1625,7 @@ jobs:
|
||||
|
||||
run_docker_step web_build "${DOCKER_WEB_BUILD_TIMEOUT_SECONDS:-1500}" \
|
||||
docker build -f apps/web/Dockerfile \
|
||||
--build-arg NODE_BASE_IMAGE=${{ env.HARBOR }}/dockerhub/library/node:20-alpine \
|
||||
--build-arg NEXT_PUBLIC_API_URL=https://awoooi.wooo.work \
|
||||
--build-arg CACHE_BUST=${{ github.sha }} \
|
||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
# 首席架構師 Review C1 (2026-04-05 Claude Code): BuildKit inline cache 需要 ARG 宣告
|
||||
ARG BUILDKIT_INLINE_CACHE=1
|
||||
ARG NODE_BASE_IMAGE=node:20-alpine
|
||||
|
||||
FROM node:20-alpine AS base
|
||||
FROM ${NODE_BASE_IMAGE} AS base
|
||||
|
||||
# Install pnpm
|
||||
RUN corepack enable && corepack prepare pnpm@9.0.0 --activate
|
||||
|
||||
Reference in New Issue
Block a user