ci(frontend): inject public build configuration
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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 . .
|
||||||
|
|||||||
Reference in New Issue
Block a user