fix: Volumes

This commit is contained in:
Andras Bacsai 2022-03-23 11:14:38 +01:00
parent 2bf73109b2
commit a8c5551292

View File

@ -68,11 +68,10 @@ export default async function (job) {
});
let imageId = applicationId;
let domain = getDomain(fqdn);
let volumes =
persistentStorage?.map((storage) => {
return `${applicationId}${storage.path.replace(/\//gi, '-')}:${
type !== 'docker' ? '/app' : ''
buildPack !== 'docker' ? '/app' : ''
}${storage.path}`;
}) || [];
// Previews, we need to get the source branch and set subdomain