fix: properly quote registry username in docker login to handle special characters like $

Co-authored-by: Siumauricio <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-20 19:41:56 +00:00
co-authored by Siumauricio
parent 771d0dd8ab
commit 44645a6fbe
7 changed files with 46 additions and 12 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ const getRegistryCommands = (
): string => {
return `
echo "📦 [Enabled Registry] Uploading image to '${registry.registryType}' | '${registryTag}'" ;
echo "${registry.password}" | docker login ${registry.registryUrl} -u ${registry.username} --password-stdin || {
echo "${registry.password}" | docker login ${registry.registryUrl} -u '${registry.username}' --password-stdin || {
echo "❌ DockerHub Failed" ;
exit 1;
}