fix: verify staged demo asset sets
deploy-preland / deploy barbariskatest (push) Skipped
deploy-preland / deploy zoomstage.online (push) Failing after 20s
deploy-preland / deploy zoompixel.online (push) Skipped
deploy-preland / deploy zoompixel.ru (push) Skipped

This commit is contained in:
Panfilov Konstantin committed 2026-10-17 07:50:48 +03:00
1 parent 45e20ed0cd
commit 37ca4ae356
2 files changed
+15

No files matched your search

+11
View File
@@ -42,6 +42,17 @@ if (!str_contains($template, $pathBuilder)
$failures[] = 'Template и examples должны строить путь из Index-совместимого имени demo/demo-N.';
}
$workflow = (string) file_get_contents($root . '/.gitea/workflows/deploy.yml');
foreach ([
'"$PRELAND_URL/images/demo/1/source.avif"',
'"$PRELAND_URL/images/demo-2/1/source.avif"',
'"$PRELAND_URL/?indpic=2&nc=$(date +%s)"',
] as $requiredStageSmokeCheck) {
if (!str_contains($workflow, $requiredStageSmokeCheck)) {
$failures[] = "Stage-деплой обязан проверять публикацию {$requiredStageSmokeCheck}.";
}
}
if ($failures !== []) {
fwrite(STDERR, "FAILED\n- " . implode("\n- ", $failures) . "\n");
exit(1);