ci(release): package web artifact on runtime builder
Deploy / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled

This commit is contained in:
Xiaoxia AI
2026-06-22 17:55:16 +08:00
parent 386ce76761
commit 313bb1b2cc
3 changed files with 48 additions and 25 deletions
+9
View File
@@ -161,12 +161,19 @@ def test_gitea_production_deploy_requires_runtime_builder_job():
assert "runs-on: runtime-builder" in build_section
assert "scripts/build_release_images.sh \"${GITHUB_REF_NAME}\"" in build_section
assert "docker.m.daocloud.io/library/node:20" in build_section
assert "npm ci && npm run build" in build_section
assert "dist/release-artifacts/xiaoxia-release-${GITHUB_REF_NAME}.tar.gz" in build_section
assert "PRODUCTION_SSH_HOST" in build_section
assert "PRODUCTION_SSH_USER" in build_section
assert "PRODUCTION_SSH_KEY" in build_section
assert "/root/.ssh/xiaoxia_runtime_builder" in build_section
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 "apps/web/dist/index.html" in production_section
def test_build_host_runbook_requires_off_production_runtime_builds():
@@ -189,6 +196,8 @@ def test_runtime_builder_runner_runbook_matches_workflow():
assert "/root/.ssh/xiaoxia_runtime_builder" in runbook
assert "Do not install this runner on the current production host" in runbook
assert "production deploy waits for the image job" in runbook
assert "release-<tag>.tar.gz" in runbook
assert "prebuilt Web dist" in runbook
def test_deployment_docs_forbid_production_runtime_builds():