fix(deploy): rebuild web image during releases
Deploy / Deploy Production (push) Failing after 2086h40m35s
Deploy / Deploy Staging (push) Failing after 2086h41m29s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 2086h41m44s

This commit is contained in:
Xiaoxia AI
2026-06-21 16:49:00 +08:00
parent 70e58ccf8e
commit c5042f8a51
3 changed files with 10 additions and 0 deletions
+8
View File
@@ -57,6 +57,14 @@ def test_init_production_env_is_non_deploying_and_separated():
assert "docker run" not in script
def test_deploy_scripts_build_web_image_explicitly():
staging_script = Path("infra/docker/deploy-staging.sh").read_text(encoding="utf-8")
production_script = Path("infra/docker/deploy-production.sh").read_text(encoding="utf-8")
assert "docker compose build --pull=false web" in staging_script
assert "docker compose --env-file \"$ENV_FILE\" build --pull=false web" in production_script
def test_backup_postgres_writes_manifest_and_version():
script = Path("scripts/backup_postgres.sh").read_text(encoding="utf-8")