File tree 2 files changed +10
-2
lines changed 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:
524
524
return f"linuxserver/lspipepr-{ container_name } "
525
525
case _ if "lsiodev" in self .image :
526
526
return f"linuxserver/lsiodev-{ container_name } "
527
+ case _ if "lsiobase" in self .image :
528
+ return f"linuxserver/docker-baseimage-{ container_name } "
527
529
case _:
528
530
return self .image
529
531
@@ -542,9 +544,11 @@ def get_build_url(self, tag) -> str:
542
544
return f"https://ghcr.io/linuxserver/lspipepr-{ container_name } :{ tag } "
543
545
case _ if "lsiodev" in self .image :
544
546
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 } "
545
549
case _:
546
550
return f"https://ghcr.io/{ self .image } :{ tag } "
547
-
551
+
548
552
def get_build_info (self ,container :Container ,tag :str ) -> dict [str ,str ]:
549
553
"""Get the build information from the container object.
550
554
Original file line number Diff line number Diff line change @@ -185,11 +185,15 @@ def test_get_build_url(ci: CI) -> None:
185
185
assert ci .get_build_url (tag ) == f"https://ghcr.io/linuxserver/lsiodev-plex:{ tag } "
186
186
ci .image = "lspipepr/plex"
187
187
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 } "
188
190
189
191
def test_get_image_name (ci : CI ) -> None :
190
192
ci .image = "linuxserver/plex"
191
193
assert ci .get_image_name () == "linuxserver/plex"
192
194
ci .image = "lsiodev/plex"
193
195
assert ci .get_image_name () == "linuxserver/lsiodev-plex"
194
196
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