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
+6 -4
View File
@@ -54,11 +54,13 @@ On `v*` tag push:
1. `build-production-runtime-images` runs on `runtime-builder`.
2. It executes `scripts/build_release_images.sh <tag>`.
3. It uploads `dist/release-images/xiaoxia-runtime-images-<tag>.tar` to production.
4. `deploy-production` runs after the build job succeeds.
5. `deploy-production` loads `/var/lib/xiaoxia-saas-production/runtime-images-<tag>.tar` and restarts API/Worker/Web.
3. It builds `apps/web/dist` in a Node Docker container, not on production.
4. It packages `release-<tag>.tar.gz` with the prebuilt Web dist.
5. It uploads both `runtime-images-<tag>.tar` and `release-<tag>.tar.gz` to production.
6. `deploy-production` runs after the build job succeeds.
7. `deploy-production` extracts the prebuilt release artifact, loads `/var/lib/xiaoxia-saas-production/runtime-images-<tag>.tar`, and restarts API/Worker/Web.
If the tar is missing, production deploy must fail.
If either the release tar or runtime image tar is missing, production deploy must fail.
## Preflight checks on runner