Skip to content

Commit

Permalink
Merge pull request #274 from mloviska/ibs_released_test_repo
Browse files Browse the repository at this point in the history
Add option to target released containers
  • Loading branch information
dcermak authored Jul 20, 2023
2 parents 9003f22 + 15f9857 commit 535d423
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bci_tester/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@
#: via this variable instead
BASEURL = os.getenv("BASEURL")

if TARGET not in ("obs", "ibs", "ibs-cr", "dso", "factory-totest"):
if TARGET not in (
"obs",
"ibs",
"ibs-cr",
"dso",
"factory-totest",
"ibs-released",
):
if BASEURL is None:
raise ValueError(
f"Unknown target {TARGET} specified and BASEURL is not set, cannot continue"
Expand All @@ -116,6 +123,7 @@
"ibs": f"registry.suse.de/suse/{DISTNAME}/update/bci",
"dso": "registry1.dso.mil/ironbank/suse",
"ibs-cr": f"registry.suse.de/suse/{DISTNAME}/update/cr/totest",
"ibs-released": f"registry.suse.com",
}[TARGET]


Expand Down Expand Up @@ -158,7 +166,7 @@ def create_container_version_mark(


def _get_repository_name(image_type: _IMAGE_TYPE_T) -> str:
if TARGET == "dso":
if TARGET in ("dso", "ibs-released"):
return ""
if TARGET == "ibs-cr":
return "images/"
Expand Down

0 comments on commit 535d423

Please sign in to comment.