feat: able to push image to docker registry

This commit is contained in:
Andras Bacsai committed 2022-12-01 14:39:02 +01:00
1 parent 127880cf8d
commit 8ccb0c88db
9 files changed
+102 -20

No files matched your search

+3 -3
View File
@@ -607,13 +607,13 @@ export function checkPnpm(installCommand = null, buildCommand = null, startComma
}
export async function saveDockerRegistryCredentials({ url, username, password, workdir }) {
let decryptedPassword = decrypt(password);
const location = `${workdir}/.docker`;
if (!username || !password) {
return null
}
let decryptedPassword = decrypt(password);
const location = `${workdir}/.docker`;
try {
await fs.mkdir(`${workdir}/.docker`);
} catch (error) {