360 Secure SkillHub
360 安全技能中心

Blue Green Deployer

该 Skill 提供 OpenClaw 配置变更的蓝绿部署流程:用 deploy.sh 从当前 Blue 配置生成 Green 测试环境,用户修改 Green 配置后用 jq 校验 JSON 语法并执行符号链接验证,通过则提升为 Blue,失败则用 .bak 回滚;建议部署后用 openclaw status 确认服务状态。

joshualeecowan33-ui
joshualeecowan33-ui
热度 51.12
最近更新 2026-05-11 17:43:48
分类:自动化依赖:代码执行 / 读写文件应用场景:DevOps / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add blue-green-deployer
Metadata
name
blue-green-deployer
version
2.0.0
description
A specialized skill for safely managing and testing OpenClaw configuration changes using a Blue/Green deployment pattern. Use when you need to test new settings, tools, or channel configurations without risking the stability of the main (Blue) session.
dependencies
["openclaw","jq"]

Blue/Green Deployer

This skill provides a structured pre-production testing workflow for OpenClaw configuration changes using a Blue/Green deployment pattern.

Workflow

1. Setup the Green Environment

Initialize the testing area by creating the Green configuration from your current Blue master.

  • Command: bash <skill-path>/scripts/deploy.sh

2. Experiment

Modify the files within the green configuration folder or the openclaw.json.green file directly using your preferred editor.

3. Audit and Validate

Verify that the changes in the Green environment are valid and do not break the OpenClaw service.

  • Step A: Check JSON syntax: jq empty openclaw.json.green
  • Step B: Run the deployment script to perform the symlink-based validation check.

4. Promote or Rollback

  • To Promote: If the audit passes, the deploy.sh script will automatically promote the Green configuration to Blue.
  • To Rollback: If the audit fails, the deploy.sh (or manual action) will revert the Blue configuration to its previous state using the .bak file.

Troubleshooting

  • Validation Error: If the script reports a failure, check the openclaw.json.green file for syntax errors (missing commas, brackets) or invalid keys.
  • Manual Check: Always use openclaw status after any deployment to ensure the live service is operational.