Skip to content

Commit

Permalink
Merge pull request #66 from sclorg/support_rhel9
Browse files Browse the repository at this point in the history
Let's add support also for RHEL9
  • Loading branch information
phracek authored Sep 13, 2022
2 parents 6d0e777 + ebc379d commit 191ec7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions container_workflow_tool/distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def _update_test_openshift_yaml(self, test_openshift_yaml, version: str = "", sh
os_name = "fedora"
if self.conf.image_names == "RHEL8":
os_name = "rhel8"
if self.conf.image_names == "RHEL9":
os_name = "rhel9"
if self.conf.image_names == "RHSCL":
os_name = "rhel7"
fdata = self._update_variable_in_string(fdata, tag="OS", tag_str="OS_NUMBER", variable=os_name)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_distgit.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def test_tag_dockerfile(self):
("VERSION", "VERSION_NUMBER", "1.14", True),
("OS", "OS_NUMBER", "rhel8", True),
("VER", "VERSION_NUMBER", "base", False),
("OS", "OS_NUMBER", "rhel9", True),
("OS", "VERSION_NUMBER", "base", False),
("VERSION", "VERSIONS_NUMBER", "1.14", False),
("SHORT_NAME", "CONTAINER_NAME", "nodejs", True),
Expand All @@ -142,6 +143,7 @@ def test_update_variable_in_string(self, tag, tag_str, variable, expected):
[
("fedora", "fedora", "base"),
("RHEL8", "rhel8", "1.14"),
("RHEL9", "rhel9", "1.14"),
("RHSCL", "rhel7", "14"),
("FOO", "fedora", "bar")
]
Expand Down

0 comments on commit 191ec7a

Please sign in to comment.