mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
ci(vps): honor VPS_ALWAYS_ON — release teardown is a no-op on the dedicated 24/7 host (#6693)
The .113 VM is now a dedicated, always-on CI host so day-to-day quality.yml PRs (PR→release/**) use the 32-core VPS, not just release CI. release-runner-down.sh must not flip USE_VPS_RUNNER=false / shut the VM down when VPS_ALWAYS_ON=true, or every PR after a release would fall back to ubuntu-latest. Legacy on-demand teardown still applies when the var is unset/false.
This commit is contained in:
committed by
GitHub
parent
632d304939
commit
5144712ab6
@@ -10,6 +10,17 @@ VM_ID="${VM_ID:-113}"
|
||||
REPO="${REPO:-diegosouzapw/OmniRoute}"
|
||||
SSH="ssh -o BatchMode=yes -o ConnectTimeout=8"
|
||||
|
||||
# 0) Always-on mode. When the repo var VPS_ALWAYS_ON=true, the VM 113 is a DEDICATED,
|
||||
# 24/7 CI host (32c/24GB, exclusive to this project) — the day-to-day quality.yml PRs
|
||||
# (PR→release/**) route to it too, not just release CI. In that mode the release MUST NOT
|
||||
# tear the VM down or flip USE_VPS_RUNNER off, or every subsequent PR would fall back to
|
||||
# ubuntu-latest until the next release. Teardown/flag-off is the LEGACY on-demand-per-release
|
||||
# model only. (Set/unset with: gh variable set VPS_ALWAYS_ON --body true|false.)
|
||||
if [ "$(gh variable get VPS_ALWAYS_ON --repo "$REPO" 2>/dev/null)" = "true" ]; then
|
||||
echo "[release-runner] VPS_ALWAYS_ON=true — dedicated 24/7 host; leaving VM $VM_ID up and USE_VPS_RUNNER=true."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# 1) Volta o CI para ubuntu-latest ANTES de derrubar a VM (evita jobs presos).
|
||||
echo "[release-runner] USE_VPS_RUNNER=false (CI volta ao GitHub-hosted)."
|
||||
gh variable set USE_VPS_RUNNER --repo "$REPO" --body "false" >/dev/null 2>&1 || true
|
||||
|
||||
Reference in New Issue
Block a user