ci(frontend): inject public build configuration

This commit is contained in:
2026-08-11 10:44:56 +08:00
parent f5bcf28f7e
commit 4a978de905
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -13,6 +13,9 @@ jobs:
image_name: gitea.waternetwork.cn/orgtjwater/tjwaterfrontend_refine image_name: gitea.waternetwork.cn/orgtjwater/tjwaterfrontend_refine
dockerfile: Dockerfile dockerfile: Dockerfile
build_context: . build_context: .
build_args: |
NEXT_PUBLIC_BACKEND_URL=${{ vars.NEXT_PUBLIC_BACKEND_URL }}
NEXT_PUBLIC_MAP_URL=${{ vars.NEXT_PUBLIC_MAP_URL }}
deploy_service: frontend deploy_service: frontend
deploy_host: 192.168.1.114 deploy_host: 192.168.1.114
secrets: secrets:
+5
View File
@@ -15,6 +15,11 @@ RUN \
FROM base AS builder FROM base AS builder
ARG NEXT_PUBLIC_BACKEND_URL
ARG NEXT_PUBLIC_MAP_URL
ENV NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL} \
NEXT_PUBLIC_MAP_URL=${NEXT_PUBLIC_MAP_URL}
COPY --from=deps /app/refine/node_modules ./node_modules COPY --from=deps /app/refine/node_modules ./node_modules
COPY . . COPY . .