Skip to content

feat(ci): auto-deploy to production after Release succeeds on main#98

Merged
posix4e merged 1 commit intomainfrom
feat/auto-deploy-prod-on-main
Apr 15, 2026
Merged

feat(ci): auto-deploy to production after Release succeeds on main#98
posix4e merged 1 commit intomainfrom
feat/auto-deploy-prod-on-main

Conversation

@posix4e
Copy link
Copy Markdown
Contributor

@posix4e posix4e commented Apr 15, 2026

Summary

Push-to-main now auto-deploys to production after a successful Release run. Previously only latest was published and an operator had to dispatch production-deploy.yml by hand.

  • workflow_run trigger on Release completion, branches: [main]
  • Deploy job gated by github.event.workflow_run.conclusion == 'success' — failed builds never promote
  • workflow_dispatch still works for re-deploying a specific tag (v0.2.0 rollback, etc.)
  • DD_RELEASE_TAG falls back to latest when no input is provided

Rollout note

Once merged, the next push to main will:

  1. Release builds + publishes latest
  2. Production Deploy fires automatically, pulls latest, STONITHs the old prod VM, brings up the new one at app.devopsdefender.com

Test plan

  • YAML parses
  • Next merge to main triggers Release → Production Deploy sequentially
  • Failing a push (e.g. broken test) does NOT promote to production
  • workflow_dispatch path still works manually with an explicit release_tag

🤖 Generated with Claude Code

Adds a workflow_run trigger on Release completion (branch=main,
conclusion=success). Previously push-to-main only published the
`latest` release asset; an operator had to then manually dispatch
production-deploy.yml. Now the sequence is automatic.

- Manual workflow_dispatch still works (re-deploy a specific tag).
- workflow_run fires on every Release run; the job's `if:` gates
  on conclusion=success so failed builds don't promote.
- DD_RELEASE_TAG falls back to 'latest' when inputs aren't set
  (workflow_run has no inputs).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@posix4e posix4e merged commit 617def4 into main Apr 15, 2026
1 check passed
@posix4e posix4e deleted the feat/auto-deploy-prod-on-main branch April 15, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant