ci(release): package web artifact on runtime builder
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user