fix: preserve staging compose images
Deploy staging to test server / deploy (push) Successful in 5m38s

This commit is contained in:
linmeng
2026-07-28 17:59:55 +08:00
parent 859ff26510
commit a7ff511f55
3 changed files with 23 additions and 11 deletions
@@ -475,6 +475,8 @@ test("Gitea staging push builds ACR images and deploys them on the test server",
assert.match(workflow, /docker push "\$IMAGE_REPOSITORY:web-\$GITEA_SHA"/);
assert.match(workflow, /scp \$SCP_OPTIONS/);
assert.match(workflow, /sudo tar -xf '\$REMOTE_ARCHIVE' -C '\$DEPLOY_PATH'/);
assert.match(workflow, /sudo env/);
assert.match(workflow, /API_IMAGE='\$IMAGE_REPOSITORY:api-\$GITEA_SHA'/);
assert.match(workflow, /pull api web/);
assert.match(workflow, /up -d --no-build --remove-orphans/);
assert.match(workflow, /curl --fail.*"\$STAGING_URL\/api\/health"/);