- if: $CI_COMMIT_BRANCH == "master"
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH == "test"
- - if: $CI_COMMIT_BRANCH == "develop"
tags:
- docker
needs:
expire_in: '1 week'
before_script:
- ls -lA --color=always /etc/yum.repos.d
-# - |
-# if [[ "${EL_MAJOR_VERSION}" -ge "8" ]] ; then
-# echo "Manipulating repo files in CentOS 8 ..."
-# for repo_file in /etc/yum.repos.d/CentOS-Linux*.repo ; do
-# if [[ -f "${repo_file}" ]] ; then
-# echo -e "\nChanging ${repo_file} ..."
-# sed -i -e 's/^mirrorlist/# mirrorlist/' -e 's/^#[ ]*baseurl[ ]*=/baseurl=/' "${repo_file}"
-# cat "${repo_file}"
-# fi
-# done
-# fi
- ${YUM} clean all
- ${YUM} makecache
- |