This commit is contained in:
parent
2cbed3e34f
commit
a8cf73109b
|
|
@ -26,6 +26,7 @@ steps:
|
|||
password:
|
||||
from_secret: harbor_password
|
||||
insecure: true
|
||||
no_cache: true
|
||||
|
||||
# ==================== 构建并推送 Admin API 镜像 ====================
|
||||
- name: build-admin
|
||||
|
|
@ -43,6 +44,7 @@ steps:
|
|||
password:
|
||||
from_secret: harbor_password
|
||||
insecure: true
|
||||
no_cache: true
|
||||
|
||||
# ==================== 部署到服务器 ====================
|
||||
- name: deploy
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
FROM 192.168.195.25:19900/library/node:20-alpine AS frontend
|
||||
WORKDIR /app
|
||||
COPY src/MiAssessment.Admin/admin-web/package*.json ./
|
||||
RUN rm -f package-lock.json && npm install
|
||||
RUN npm config set registry https://registry.npmmirror.com && \
|
||||
rm -f package-lock.json && npm install --ignore-scripts && npm rebuild esbuild
|
||||
COPY src/MiAssessment.Admin/admin-web/ .
|
||||
RUN npx vite build --outDir dist
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user