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