mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #196 from Dokploy/fix/remove-registry-login-on-self-hosted
fix(registry): remove login on self hosted
This commit is contained in:
@@ -33,8 +33,10 @@ export const createRegistry = async (input: typeof apiCreateRegistry._type) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const loginCommand = `echo ${input.password} | docker login ${input.registryUrl} --username ${input.username} --password-stdin`;
|
if (newRegistry.registryType === "cloud") {
|
||||||
await execAsync(loginCommand);
|
const loginCommand = `echo ${input.password} | docker login ${input.registryUrl} --username ${input.username} --password-stdin`;
|
||||||
|
await execAsync(loginCommand);
|
||||||
|
}
|
||||||
|
|
||||||
return newRegistry;
|
return newRegistry;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user