fix: update registry tag construction to handle optional registry URL

This commit is contained in:
Mauricio Siu
2025-09-21 00:09:19 -06:00
parent ac1e51cd11
commit 8524cd0972

View File

@@ -22,8 +22,8 @@ export const uploadImage = async (
// For ghcr.io: ghcr.io/username/image:tag // For ghcr.io: ghcr.io/username/image:tag
// For docker.io: docker.io/username/image:tag // For docker.io: docker.io/username/image:tag
const registryTag = imagePrefix const registryTag = imagePrefix
? `${registryUrl}/${imagePrefix}/${imageName}` ? `${registryUrl ? `${registryUrl}/` : ""}${imagePrefix}/${imageName}`
: `${registryUrl}/${username}/${imageName}`; : `${registryUrl ? `${registryUrl}/` : ""}${username}/${imageName}`;
try { try {
writeStream.write( writeStream.write(