fix(release): stream large migration checksums from git
All checks were successful
Build and Release FEDEO / verify (push) Successful in 25s
Build and Release FEDEO / build-and-release (push) Successful in 5m50s

This commit is contained in:
2026-09-23 15:37:19 +02:00
parent f6996c1d7b
commit 74c0cf40b3
4 changed files with 125 additions and 10 deletions

View File

@@ -14,11 +14,11 @@ export function assertManifest(manifest, plan, config) {
}
}
export function makeManifest(plan, images, config) {
export async function makeManifest(plan, images, config) {
return {
schemaVersion: 1, version: plan.version, tag: plan.tag, commit: plan.sha,
previousTag: plan.previousTag, repository: config.repositoryUrl,
images, components: componentVersions(plan.sha), migrations: migrationManifest(plan.sha),
images, components: componentVersions(plan.sha), migrations: await migrationManifest(plan.sha),
migrationPolicy: 'Forward migrations on startup. Downgrade requires schema compatibility or a matching database backup.',
};
}
@@ -61,7 +61,7 @@ export async function publishRelease({ plan, config, api, build, promote, files
}
if (!manifest) {
const images = await build(plan.version);
manifest = manifestFactory(plan, images, config);
manifest = await manifestFactory(plan, images, config);
}
assertManifest(manifest, plan, config);
if (!release) {