Skip to content

Commit 1bdac4d

Browse files
authored
Merge pull request #87 from sclorg/support_rhel10
Add support for RHEL10 in test-openshift.yaml files
2 parents 4287e31 + cdbf163 commit 1bdac4d

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.github/workflows/build-and-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
dockerfiles: ./Dockerfile.generator
2222
image: cwt-generator
23-
tags: latest 1 ${{ github.sha }} 1.5.10
23+
tags: latest 1 ${{ github.sha }} 1.5.11
2424

2525
- name: Push cwt-generator image to Quay.io
2626
id: push-to-quay

container_workflow_tool/git_operations.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,11 @@ def update_test_openshift_yaml(self, test_openshift_yaml, version: str = "", sho
194194
with open(test_openshift_yaml) as f:
195195
fdata = f.read()
196196
fdata = self.update_variable_in_string(fdata, "VERSION", "VERSION_NUMBER", version)
197-
os_name = "fedora"
198-
if self.conf.image_names == "RHEL8":
199-
os_name = "rhel8"
200-
elif self.conf.image_names == "RHEL9":
197+
os_name = "rhel8"
198+
if self.conf.image_names == "RHEL9":
201199
os_name = "rhel9"
202-
elif self.conf.image_names == "RHSCL":
203-
os_name = "rhel7"
200+
elif self.conf.image_names == "RHEL10":
201+
os_name = "rhel10"
204202
fdata = self.update_variable_in_string(fdata, tag="OS", tag_str="OS_NUMBER", variable=os_name)
205203
fdata = self.update_variable_in_string(fdata, tag="SHORT_NAME", tag_str="CONTAINER_NAME", variable=short_name)
206204
with open(test_openshift_yaml, 'w') as f:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_dir(system_path=None, virtual_path=None):
5858

5959
setup(
6060
name='container-workflow-tool',
61-
version="1.5.10",
61+
version="1.5.11",
6262
description='A python3 tool to make rebuilding images easier by automating several steps of the process.',
6363
long_description=long_description,
6464
long_description_content_type='text/markdown',

tests/test_git_operations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,9 @@ def test_distgit_commit_msg(self):
5353
@pytest.mark.parametrize(
5454
"os_name,os_name_expected,version",
5555
[
56-
("fedora", "fedora", "base"),
5756
("RHEL8", "rhel8", "1.14"),
5857
("RHEL9", "rhel9", "1.14"),
59-
("RHSCL", "rhel7", "14"),
60-
("FOO", "fedora", "bar")
58+
("RHEL10", "rhel10", "1.14"),
6159
]
6260
)
6361
def test_update_openshift_yaml(self, os_name, os_name_expected, version):

0 commit comments

Comments
 (0)