Merge "Fix Usage of rdo-release rpm"
This commit is contained in:
commit
e937dcb743
12
stack.sh
12
stack.sh
@ -300,10 +300,14 @@ function _install_epel {
|
||||
}
|
||||
|
||||
function _install_rdo {
|
||||
# NOTE(ianw) 2020-04-30 : when we have future branches, we
|
||||
# probably want to install the relevant branch RDO release as
|
||||
# well. But for now it's all master.
|
||||
sudo dnf -y install https://rdoproject.org/repos/rdo-release.el8.rpm
|
||||
if [[ "$TARGET_BRANCH" == "master" ]]; then
|
||||
# rdo-release.el8.rpm points to latest RDO release, use that for master
|
||||
sudo dnf -y install https://rdoproject.org/repos/rdo-release.el8.rpm
|
||||
else
|
||||
# For stable branches use corresponding release rpm
|
||||
rdo_release=$(echo $TARGET_BRANCH | sed "s|stable/||g")
|
||||
sudo dnf -y install https://rdoproject.org/repos/openstack-${rdo_release}/rdo-release-${rdo_release}.el8.rpm
|
||||
fi
|
||||
sudo dnf -y update
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user