make build work across server restart
tmp files disappear on server restart
This commit is contained in:
@@ -145,11 +145,6 @@ async function install(req, res, next) {
|
||||
|
||||
data.sourceArchiveFilePath = req.files && req.files.sourceArchive?.path || null;
|
||||
|
||||
// if we have a source archive upload, craft a custom docker image URI for later
|
||||
if (data.sourceArchiveFilePath) {
|
||||
data.manifest.dockerImage = `local/${data.manifest.id}:${data.manifest.version}-${Date.now()}`;
|
||||
}
|
||||
|
||||
[error, result] = await safe(apps.install(data, AuditSource.fromRequest(req)));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
@@ -659,11 +654,6 @@ async function update(req, res, next) {
|
||||
|
||||
data.sourceArchiveFilePath = req.files && req.files.sourceArchive?.path || null;
|
||||
|
||||
// if we have a source archive upload, craft a custom docker image URI for later
|
||||
if (data.sourceArchiveFilePath) {
|
||||
data.manifest.dockerImage = `local/${data.manifest.id}:${data.manifest.version}-${Date.now()}`;
|
||||
}
|
||||
|
||||
[error, result] = await safe(apps.updateApp(req.resources.app, data, AuditSource.fromRequest(req)));
|
||||
if (error) return next(BoxError.toHttpError(error));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user