Skip to content

Commit 0f11971

Browse files
authored
Fix/add lsiobase (#59)
* Forgot to add baseimage as alternative. * update tests for lsiobase
1 parent 24176db commit 0f11971

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ci/ci.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tests/test_ci.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

189191
def 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"

0 commit comments

Comments
 (0)