feat(deploy): autodeploy off unless AUTODEPLOY=true
renovate-ci / validate-renovate (push) Successful in 2m1s
ci / lint-shellcheck (push) Successful in 24s
ci / lint-prettier (push) Successful in 6s
ci / lint-ruff (push) Successful in 2s
ci / lint-yaml (push) Successful in 2s
ci / lint-dockerfiles (push) Successful in 2s
ci / validate (push) Successful in 3s
ci / lint-compose (push) Successful in 16s
ci / lint-actionlint (push) Successful in 8s
ci / build (push) Failing after 18s

Pushes no longer reach the cluster by default; set the AUTODEPLOY repo variable to 'true' to re-enable, or dispatch manually. Skips propagate through the existing needs chain.
This commit is contained in:
forust committed 2026-09-29 12:54:17 +02:00
1 parent 91dd749a29
commit d0872bc918
1 file changed
+5 -5
+5 -5
View File
@@ -39,12 +39,12 @@ 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.
# Autodeploy defaults to OFF: pushes deploy only when the AUTODEPLOY repo
# variable is set to 'true' (Settings -> Actions -> Variables). A manual
# Run workflow always bypasses the switch: dispatching it is the explicit
# intent to deploy.
if: >-
(vars.AUTODEPLOY != 'false' || github.event_name == 'workflow_dispatch') &&
(vars.AUTODEPLOY == 'true' || github.event_name == 'workflow_dispatch') &&
(github.event_name != 'workflow_run' ||
(github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_branch == 'main'))