feat(ci): enable maintenance mode during deployments #177

Merged
jmiller merged 1 commits from feat/deploy-maintenance-mode into dev 2026-05-26 00:35:14 +00:00
Owner

Wraps deploy in maintenance mode on/off.

Wraps deploy in maintenance mode on/off.
jmiller added 1 commit 2026-05-26 00:35:06 +00:00
feat(ci): enable maintenance mode during deployments
Branch Policy Check / Verify merge target (pull_request) Has been cancelled
PR RC Release / Build RC Release (pull_request) Has been cancelled
d55b79a9ff
The deploy workflow now:
1. Enables maintenance mode before building (users see maintenance page)
2. Builds, pushes, and restarts the container
3. Disables maintenance mode after health check passes (if: always)

Uses Gitea's built-in maintenance mode via admin config API.
If the instance is already down, the enable step gracefully warns
instead of failing. The disable step runs even if deploy fails
to avoid leaving the instance in maintenance mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jmiller merged commit 592a71968f into dev 2026-05-26 00:35:14 +00:00
Sign in to join this conversation.