fix(core): update

This commit is contained in:
2024-06-10 00:15:01 +02:00
parent 054585c7f5
commit 2e7e8ae5cf
8 changed files with 104 additions and 31 deletions

View File

@@ -87,6 +87,12 @@ export class DockerImageStore {
});
logger.log('ok', `Repackaged image ${imageName} for s3.`);
await plugins.smartfile.fs.remove(extractionDir);
const finalTarReadStream = plugins.smartfile.fsStream.createReadStream(finalTarPath);
await this.options.bucketDir.fastPutStream({
stream: finalTarReadStream,
path: `${imageName}.tar`,
});
await plugins.smartfile.fs.remove(finalTarPath);
}
public async start() {