mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-06 04:19:37 +00:00
fix: update registry tag construction to handle optional registry URL
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user