test(ci): align production deploy assertions

This commit is contained in:
Xiaoxia AI
2026-06-25 11:56:59 +08:00
parent f06319958e
commit e841bcca12
+3 -2
View File
@@ -29,7 +29,7 @@ def test_deploy_production_uses_production_infra_and_project():
assert "Production deploy must not build frontend assets on the server" in script
assert "WEB_DOCKERFILE=infra/docker/web-artifact.Dockerfile" in script
assert "WEB_NGINX_CONF=infra/docker/nginx-production.conf" in script
assert "Skipping production API/worker image builds" in script
assert "Skipping production API/worker/web image builds" in script
assert "RELEASE_VERSION" in script
assert "RUNTIME_IMAGE_TAR" in script
assert 'docker load -i "$RUNTIME_IMAGE_TAR"' in script
@@ -239,7 +239,8 @@ def test_gitea_production_deploy_requires_runtime_builder_job():
assert "runtime-images-${RELEASE_VERSION}.tar" in production_section
assert "apps/web/dist/index.html" in production_section
assert (
"HOST_PREFIX= sh /var/lib/xiaoxia-saas-production/repo/infra/docker/deploy-production.sh" in production_section
'HOST_PREFIX= WEB_IMAGE="xiaoxia-saas-web:${RELEASE_VERSION}" WEB_IMAGE_TAR="/var/lib/xiaoxia-saas-production/web-${RELEASE_VERSION}.tar" sh /var/lib/xiaoxia-saas-production/repo/infra/docker/deploy-production.sh'
in production_section
)