fix(image): github registry image truncated [EE-7021] (#11768)

pull/11822/head
Oscar Zhou 2024-05-10 09:01:47 +12:00 committed by GitHub
parent 1fce2b83d7
commit 680cb3b36a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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