feat: единая админка runtime-конфигов и indpic (#22)
deploy-preland / deploy zoomstage.online (push) Successful in 1m1s

This commit is contained in:
Panfilov Konstantin committed 2026-10-25 11:33:56 +03:00
1 parent 5b6b2d2053
commit 9515c1c62b
52 files changed
+2459 -34

No files matched your search

+11 -3
View File
@@ -50,9 +50,9 @@ foreach ([
$workflow = (string) file_get_contents($root . '/.gitea/workflows/deploy.yml');
foreach ([
'"$PRELAND_URL/1/01_desk_1-source.avif"',
'"$PRELAND_URL/2/01_desk_1-source.avif"',
'2/01_mob_1-source.avif',
'php bin/release-assets.php --stage-sets "$PRELAND_URL"',
'php bin/release-assets.php --remote "$PRELAND_URL"',
'php-imagick',
'Remove obsolete demo directories',
] as $requiredStageSmokeCheck) {
if (!str_contains($workflow, $requiredStageSmokeCheck)) {
@@ -60,6 +60,14 @@ foreach ([
}
}
// #22: реальный runtime config выбирает наборы; удаление неиспользуемого /2/
// не должно блокировать выпуск. Обязательные файлы/размеры проверяет guard.
require_once $root . '/bin/release-assets.php';
foreach (releaseFiles($root) as $file) {
if (preg_match('~^(admin/|config\.json$|[0-9]+/)~', $file)) $failures[] = 'Runtime/приватный файл в поставке: ' . $file;
}
if (runtimeSetNumbers(['utm' => ['indpic' => ['default' => '3', 'weights' => ['3' => 1]]]]) !== [3]) $failures[] = 'Наборы должны определяться фактическим config';
if (!str_contains($workflow, '|[0-9]+/)')) {
$failures[] = 'Stage-деплой не должен перезаписывать корневые наборы /N/: stage владеет их содержимым.';
}