Skip to content
Snippets Groups Projects
Commit 16d826e2 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

Merge branch 'fix_yum_install' into 'master'

Check for yum presence rather than rely on CI tags

See merge request !338
parents 5ef7675b 4c12628a
No related branches found
No related tags found
1 merge request!338Check for yum presence rather than rely on CI tags
Pipeline #68101 passed
...@@ -247,11 +247,12 @@ def build( ...@@ -247,11 +247,12 @@ def build(
if not os.path.exists(d): if not os.path.exists(d):
raise RuntimeError("The directory %s does not exist" % d) raise RuntimeError("The directory %s does not exist" % d)
# If in docker, install the packages inside the yum_requirements.txt file if it exists # If using RH based image/runner, install the packages inside the
# yum_requirements.txt file if it exists
yum_requirements_file = os.path.join(d, "yum_requirements.txt") yum_requirements_file = os.path.join(d, "yum_requirements.txt")
if "docker" in os.environ.get("CI_RUNNER_TAGS", "").split( if os.path.exists("/usr/bin/yum") and os.path.exists(
", " yum_requirements_file
) and os.path.exists(yum_requirements_file): ):
logger.info( logger.info(
"Installing packages from yum_requirements.txt file using yum" "Installing packages from yum_requirements.txt file using yum"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment