Commit b428809f authored by xuchentao's avatar xuchentao

ci: target production runner by tag

parent 4baa296e
Pipeline #407 failed with stages
in 2 minutes and 21 seconds
......@@ -9,6 +9,7 @@
# - 不使用 resource_group
# - 不使用 cache:policy
# 仅使用 only、stages、script、when 等基础语法。
# Runner 注册时请使用标签:sumeiqiao-prod
variables:
DEPLOY_ROOT: "/root/sumeiqiao"
......@@ -34,6 +35,8 @@ stages:
# ── 1. 准备独立 release ───────────────────────────────
prepare:
stage: prepare
tags:
- sumeiqiao-prod
only:
- main
script:
......@@ -57,6 +60,8 @@ prepare:
# release 尚未启用,安装失败不会影响线上服务,也不需要占用 CMS 构建锁。
install:
stage: install
tags:
- sumeiqiao-prod
only:
- main
script:
......@@ -72,6 +77,8 @@ install:
# 常规失败会在锁内自动恢复上一成功版本。
deploy:
stage: deploy
tags:
- sumeiqiao-prod
only:
- main
script:
......@@ -87,6 +94,8 @@ deploy:
# when: always 用于输出最终状态;生产健康检查和自动回退已经在 deploy 的共享锁内完成。
verify:
stage: verify
tags:
- sumeiqiao-prod
only:
- main
when: always
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment