Commit 00739c1b authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Fix CI: use only: instead of rules: for job branch gating

This GitLab instance rejected rules: with "unknown keys" - confirmed by
origin/dev's own prior .gitlab-ci.yml (pipeline #1007) using only: and
passing on this same server/runner. Reverting to the proven syntax.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 78e816ec
Pipeline #1011 canceled with stage
in 27 minutes and 54 seconds
...@@ -23,9 +23,9 @@ test: ...@@ -23,9 +23,9 @@ test:
- pip install --prefer-binary -q -r requirements.txt - pip install --prefer-binary -q -r requirements.txt
script: script:
- PYTHONPATH=. pytest tests/ -v - PYTHONPATH=. pytest tests/ -v
rules: only:
- if: '$CI_COMMIT_BRANCH == "dev"' - dev
- if: '$CI_COMMIT_BRANCH == "main"' - main
# Only ever runs on main, and fires automatically once the test job above passes. Copies the # Only ever runs on main, and fires automatically once the test job above passes. Copies the
# repo's current deploy.sh onto prod and runs it there over SSH - deploy.sh itself handles # repo's current deploy.sh onto prod and runs it there over SSH - deploy.sh itself handles
...@@ -57,5 +57,5 @@ deploy_prod: ...@@ -57,5 +57,5 @@ deploy_prod:
STAX_PROD_TELEGRAM_BOT_TOKEN='${STAX_PROD_TELEGRAM_BOT_TOKEN:-}' STAX_PROD_TELEGRAM_BOT_TOKEN='${STAX_PROD_TELEGRAM_BOT_TOKEN:-}'
STAX_PROD_LALAL_API_KEY='${STAX_PROD_LALAL_API_KEY:-}' STAX_PROD_LALAL_API_KEY='${STAX_PROD_LALAL_API_KEY:-}'
bash /root/stax_deploy_bootstrap.sh" bash /root/stax_deploy_bootstrap.sh"
rules: only:
- if: '$CI_COMMIT_BRANCH == "main"' - main
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment