feat(deploy): AUTODEPLOY kill-switch via repo variable
ci / lint-compose (push) Successful in 3s
ci / lint-actionlint (push) Successful in 1s
ci / lint-shellcheck (push) Successful in 2s
ci / lint-prettier (push) Successful in 3s
ci / lint-ruff (push) Successful in 2s
ci / lint-yaml (push) Successful in 2s
ci / lint-dockerfiles (push) Successful in 3s
ci / validate (push) Successful in 2s
renovate-ci / validate-renovate (push) Successful in 15s
ci / build (push) Canceled after 0s

Set AUTODEPLOY=false under Settings -> Actions -> Variables and pushes stop deploying with no commit; unset means on. Manual Run workflow always bypasses the switch. The existing needs/skipped chaining propagates the skip through verify and smoke untouched.
This commit is contained in:
forust committed 2026-09-29 12:52:35 +02:00
1 parent b6e1dc0362
commit 91dd749a29
1 file changed
+7 -2
+7 -2
View File
@@ -39,10 +39,15 @@ env:
jobs:
preflight:
# Kill-switch for autodeploy: set the AUTODEPLOY repo variable to 'false'
# (Settings -> Actions -> Variables) and pushes stop reaching the cluster
# with no commit. Unset means on. A manual Run workflow always bypasses
# the switch: dispatching it is the explicit intent to deploy.
if: >-
github.event_name != 'workflow_run' ||
(vars.AUTODEPLOY != 'false' || github.event_name == 'workflow_dispatch') &&
(github.event_name != 'workflow_run' ||
(github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'main')
github.event.workflow_run.head_branch == 'main'))
runs-on: [self-hosted, linux, arch, homelab, prod]
timeout-minutes: 10
steps: