mirror of https://github.com/portainer/portainer
fix(image): github registry image truncated [EE-7021] (#11768)
parent
1fce2b83d7
commit
680cb3b36a
|
@ -81,7 +81,7 @@ function buildImageFullURIWithRegistry(image: string, registry: Registry) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildImageURIForGithub(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
|
const namespace = registry.Github.UseOrganisation
|
||||||
? registry.Github.OrganisationName
|
? registry.Github.OrganisationName
|
||||||
|
|
Loading…
Reference in New Issue