fix(release): stream large migration checksums from git
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user