Merge pull request '[fix]:[20251208][drone 增加前端工程的cicd 7]' (#43) from yinzy_dev into main

Reviewed-on: #43
This commit is contained in:
君肯普通 2025-12-08 17:07:26 +08:00
commit a2fec3b29d
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ steps:
path: /var/run/docker.sock
commands:
- docker info
- docker build -t ${DRONE_REPO_NAME}-frontend:latest -f docker/Dockerfile-frontend vue-ui
- docker build -t ${DRONE_REPO_NAME}-frontend:latest -f docker/Dockerfile-frontend .
- docker tag ${DRONE_REPO_NAME}-frontend:latest ${DRONE_REPO_NAME}-frontend:${DRONE_COMMIT_SHA:0:8}
- docker images ${DRONE_REPO_NAME}-frontend
depends_on:

View File

@ -11,7 +11,7 @@ RUN npm config set registry https://registry.npmmirror.com \
&& npm ci --no-audit --no-fund
# 复制源码并构建
COPY vue-ui .
COPY vue-ui/ .
RUN npm run build
# 运行阶段,使用独立 nginx 镜像