ci(release): deploy production from runtime builder
Deploy / Build Production Runtime Images (push) Successful in 17m7s
Deploy / Deploy Production (push) Failing after 7s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled

This commit is contained in:
Xiaoxia AI
2026-06-22 18:36:56 +08:00
parent 1245f7b270
commit 61163eadca
3 changed files with 41 additions and 49 deletions
+6 -3
View File
@@ -17,7 +17,7 @@ def test_gitea_production_deploy_uses_production_ports():
assert "GITHUB_TOKEN: ${{ github.token }}" in workflow
assert "WEB_PORT=3001" not in production_section
assert "http://127.0.0.1:8001/health" in production_section
assert "RELEASE_VERSION=\"${GITHUB_REF_NAME}\"" in production_section
assert "RELEASE_VERSION='${GITHUB_REF_NAME}' sh -s" in production_section
assert "http://127.0.0.1:8000/health" not in production_section
@@ -173,9 +173,12 @@ def test_gitea_production_deploy_requires_runtime_builder_job():
assert "runtime-images-${GITHUB_REF_NAME}.tar" in build_section
assert "release-${GITHUB_REF_NAME}.tar.gz" in build_section
assert "needs: build-production-runtime-images" in production_section
assert "Sync release artifact to production workspace" in production_section
assert "release_tar=\"/host/var/lib/xiaoxia-saas-production/release-${GITHUB_REF_NAME}.tar.gz\"" in production_section
assert "runs-on: runtime-builder" in production_section
assert "Deploy production over SSH" in production_section
assert "release_tar=\"/var/lib/xiaoxia-saas-production/release-${RELEASE_VERSION}.tar.gz\"" in production_section
assert "runtime-images-${RELEASE_VERSION}.tar" in production_section
assert "apps/web/dist/index.html" in production_section
assert "sh /var/lib/xiaoxia-saas-production/repo/infra/docker/deploy-production.sh" in production_section
def test_build_host_runbook_requires_off_production_runtime_builds():