File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,8 @@ def get_image_name(self) -> str:
524524 return f"linuxserver/lspipepr-{ container_name } "
525525 case _ if "lsiodev" in self .image :
526526 return f"linuxserver/lsiodev-{ container_name } "
527+ case _ if "lsiobase" in self .image :
528+ return f"linuxserver/docker-baseimage-{ container_name } "
527529 case _:
528530 return self .image
529531
@@ -542,9 +544,11 @@ def get_build_url(self, tag) -> str:
542544 return f"https://ghcr.io/linuxserver/lspipepr-{ container_name } :{ tag } "
543545 case _ if "lsiodev" in self .image :
544546 return f"https://ghcr.io/linuxserver/lsiodev-{ container_name } :{ tag } "
547+ case _ if "lsiobase" in self .image :
548+ return f"https://ghcr.io/linuxserver/baseimage-{ container_name } :{ tag } "
545549 case _:
546550 return f"https://ghcr.io/{ self .image } :{ tag } "
547-
551+
548552 def get_build_info (self ,container :Container ,tag :str ) -> dict [str ,str ]:
549553 """Get the build information from the container object.
550554
Original file line number Diff line number Diff line change @@ -185,11 +185,15 @@ def test_get_build_url(ci: CI) -> None:
185185 assert ci .get_build_url (tag ) == f"https://ghcr.io/linuxserver/lsiodev-plex:{ tag } "
186186 ci .image = "lspipepr/plex"
187187 assert ci .get_build_url (tag ) == f"https://ghcr.io/linuxserver/lspipepr-plex:{ tag } "
188+ ci .image = "lsiobase/ubuntu"
189+ assert ci .get_build_url (tag ) == f"https://ghcr.io/linuxserver/baseimage-ubuntu:{ tag } "
188190
189191def test_get_image_name (ci : CI ) -> None :
190192 ci .image = "linuxserver/plex"
191193 assert ci .get_image_name () == "linuxserver/plex"
192194 ci .image = "lsiodev/plex"
193195 assert ci .get_image_name () == "linuxserver/lsiodev-plex"
194196 ci .image = "lspipepr/plex"
195- assert ci .get_image_name () == "linuxserver/lspipepr-plex"
197+ assert ci .get_image_name () == "linuxserver/lspipepr-plex"
198+ ci .image = "lsiobase/ubuntu"
199+ assert ci .get_image_name () == "linuxserver/docker-baseimage-ubuntu"
You can’t perform that action at this time.
0 commit comments