From 67da4e8b5683bd83e64d531d8aeb51f854d4480b Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Fri, 27 Feb 2026 16:32:10 +0000 Subject: [PATCH] ci: add temporary deploy override (#22378) Temporary override for deploying `main` to `dev.coder.com`. --- scripts/should_deploy.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/should_deploy.sh b/scripts/should_deploy.sh index 3122192956..6dbbd86120 100755 --- a/scripts/should_deploy.sh +++ b/scripts/should_deploy.sh @@ -16,6 +16,21 @@ deploy_branch=main # Determine the current branch name and check that it is one of the supported # branch names. branch_name=$(git branch --show-current) + +# --- BEGIN TEMPORARY SHORT-CIRCUIT --- +# Forces deployment of main. Remove after 2026-03-04T12:00Z. +if [[ "$branch_name" == "main" ]]; then + log "TEMPORARY SHORT-CIRCUIT: deploying main" + log "VERDICT: DEPLOY" + echo "DEPLOY" + exit 0 +else + log "VERDICT: DO NOT DEPLOY" + echo "NOOP" + exit 0 +fi +# --- END TEMPORARY SHORT-CIRCUIT --- + if [[ "$branch_name" != "main" && ! "$branch_name" =~ ^release/[0-9]+\.[0-9]+$ ]]; then error "Current branch '$branch_name' is not a supported branch name for dogfood, must be 'main' or 'release/x.y'" fi