20261111 #21
@ -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
5
Dockerfile.k3s.runtime
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user