From 06ef12d0ff46e53ae7219006b3428349f71dfe47 Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Fri, 10 May 2024 09:01:54 +1200 Subject: [PATCH] fix(image): github registry image truncated [EE-7021] (#11769) --- app/react/docker/images/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/docker/images/utils.ts b/app/react/docker/images/utils.ts index 100ef5a36..f2b7f6a1c 100644 --- a/app/react/docker/images/utils.ts +++ b/app/react/docker/images/utils.ts @@ -81,7 +81,7 @@ function buildImageFullURIWithRegistry(image: string, registry: Registry) { } function buildImageURIForGithub(image: string, registry: Registry) { - const imageName = image.split('/').pop(); + const imageName = image.startsWith('/') ? image.slice(1) : image; const namespace = registry.Github.UseOrganisation ? registry.Github.OrganisationName