WIP - Persistent storage

This commit is contained in:
Andras Bacsai
2022-03-21 21:46:49 +01:00
parent f5e7a84fa6
commit a6d5316090
4 changed files with 8 additions and 3 deletions

View File

@@ -70,7 +70,9 @@ export default async function (job) {
let volumes =
persistentStorage?.map((storage) => {
return `${applicationId}-${storage.id}:${type !== 'docker' ? '/app/' : ''}${storage.path}`;
return `${applicationId}${storage.path.replace(/\//gi, '-')}:${
type !== 'docker' ? '/app/' : ''
}${storage.path}`;
}) || [];
// Previews, we need to get the source branch and set subdomain
if (pullmergeRequestId) {