tt
Some checks failed
Build and Deploy Front / deploy (push) Failing after 8m26s

This commit is contained in:
xiaolipro 2026-11-11 15:28:56 +08:00
parent 4ff22fed57
commit dead13a052
2 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,6 @@
# 复制到 itfx-front 仓库 .gitea/workflows/deploy.yml
# push master → prod;push test → test
# 构建始终用 prod kubeconfig(Kaniko);仅 deploy 切集群
# 前端镜像:test 分支须传 FRONT_BUILD_SCRIPT=build:test,否则会打进正式 API 域名
# 构建变慢时:确认宿主机 ci-publish-front.sh 已给 Kaniko --cache=true(lock 不变时应跳过 pnpm install)
# 构建:runner 宿主 pnpm + docker(ci-publish-front.sh);仅 deploy 切集群
name: Build and Deploy Front
on:

5
Dockerfile.k3s.runtime Normal file
View File

@ -0,0 +1,5 @@
# 宿主机构建 dist 后只打 nginx 静态层(CI:ci-publish-front.sh)
FROM docker.m.daocloud.io/library/nginx:1.27-alpine
COPY dist/ /usr/share/nginx/html/
COPY nginx-k3s.conf /etc/nginx/conf.d/default.conf
EXPOSE 80