360 Secure SkillHub
360 安全技能中心

Deployment Automation

通过 node deploy.js 命令行管理部署生命周期:定义并运行多阶段流水线,支持蓝绿、金丝雀、滚动发布策略,部署前后健康检查,失败自动回滚与版本回退,以及跨环境晋级和配置差异对比;配置以 JSON 描述环境、策略、健康检查、回滚与通知。

sky-lv
sky-lv
热度 35.16
最近更新 2026-05-18 11:48:36
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 自动化脚本 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add deployment-automation
Metadata
name
deployment-automation
slug
deployment-automation
version
1.0.0
description
Automated deployment pipeline for AI agents. Build, test, and deploy applications with zero-downtime. Triggers: deployment, CI/CD, release automation, deploy pipeline, continuous deployment.
author
SKY-lv
license
MIT-0
tags
["automation","devops","deployment"]
keywords
["deployment","CI/CD","release automation","deploy pipeline","continuous deployment","zero-downtime","blue-green","canary","rollback"]
triggers
deployment-automation

Deployment Automation

Automated deployment pipeline for AI agents. Build, test, and deploy applications with zero-downtime and instant rollback.

Overview

A complete deployment automation system that helps agents manage the full release lifecycle: build, test, deploy, monitor, and rollback. Supports multiple deployment strategies including blue-green, canary, and rolling updates.

Capabilities

1. Pipeline Definition

node deploy.js pipeline create --name production --stages build,test,stage,deploy
node deploy.js pipeline run --name production --ref main
node deploy.js pipeline status --name production

Define and execute multi-stage deployment pipelines with custom stages.

2. Deployment Strategies

node deploy.js deploy --strategy blue-green --service api
node deploy.js deploy --strategy canary --service web --canary-percent 10
node deploy.js deploy --strategy rolling --service worker --batch-size 3

Choose from blue-green, canary, or rolling deployment strategies.

3. Health Checks

node deploy.js health-check --service api --endpoint /health --timeout 30s
node deploy.js health-check --custom .healthcheck.json

Automated health checks before and after deployment to ensure service stability.

4. Rollback

node deploy.js rollback --service api --to previous
node deploy.js rollback --service web --to-version v2.3.1
node deploy.js rollback --auto-on-failure --max-retries 3

Instant rollback to previous versions on deployment failure.

5. Multi-Environment

node deploy.js promote --from staging --to production --approve
node deploy.js diff --env staging vs production

Promote builds across environments with approval gates and configuration diffing.

Configuration

{
  "pipeline": {
    "environments": ["dev", "staging", "production"],
    "strategy": "canary",
    "canaryPercent": 10,
    "healthCheck": {
      "endpoint": "/health",
      "timeout": "30s",
      "retries": 3
    },
    "rollback": {
      "autoOnFailure": true,
      "maxRetries": 3
    },
    "notifications": {
      "onStart": ["slack"],
      "onSuccess": ["slack", "email"],
      "onFailure": ["slack", "pagerduty"]
    }
  }
}

Use Cases

  • Application Release: Automate full release workflow from build to deploy
  • Microservices: Deploy individual services independently
  • Infrastructure: Deploy infrastructure changes alongside application code
  • Agent Deployment: Deploy AI agent updates with zero downtime
  • Hotfix: Emergency deployments with automated health verification