From d0872bc918fd610914de8b929fa981d669c92144 Mon Sep 17 00:00:00 2001 From: mr-forust Date: Tue, 29 Sep 2026 12:54:17 +0200 Subject: [PATCH] feat(deploy): autodeploy off unless AUTODEPLOY=true 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. --- .gitea/workflows/deploy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 362eaf7..159ba25 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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'))