feat(upgrade-agent): add automated service upgrade pipeline with n8n + DIUN
Pipeline: DIUN detects new image versions every 6h → webhook to n8n → n8n filters (skip databases/custom/infra/:latest) and rate-limits (max 5/6h) → SSH to dev VM → claude -p runs upgrade agent. Agent workflow: resolve GitHub repo → fetch changelogs → classify risk (SAFE/CAUTION) → backup DB if needed → bump version in .tf → commit+push → wait for CI → verify (pod ready + HTTP + Uptime Kuma) → rollback on failure. Changes: - stacks/n8n: add N8N_PORT=5678 to fix K8s env var conflict - stacks/n8n/workflows: version-controlled n8n workflow backup - docs/architecture/automated-upgrades.md: full pipeline documentation - AGENTS.md: add upgrade agent section - service-catalog.md: update DIUN description Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
27d7c91608
commit
c33f597111
5 changed files with 206 additions and 1 deletions
|
|
@ -150,6 +150,10 @@ resource "kubernetes_deployment" "n8n" {
|
|||
container {
|
||||
name = "n8n"
|
||||
image = "docker.n8n.io/n8nio/n8n:1.80.0"
|
||||
env {
|
||||
name = "N8N_PORT"
|
||||
value = "5678"
|
||||
}
|
||||
env {
|
||||
name = "DB_TYPE"
|
||||
value = "postgresdb"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue