forked from RedHatInsights/rhc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): Adding script to install from copr/packit build for downs…
…tream PR jobs
- Loading branch information
1 parent
cd964ef
commit 4f34f20
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/bash -eux | ||
dnf install -y dnf-plugins-core | ||
|
||
#Determine the repo needed from copr | ||
#Available repositories: 'centos-stream-8-x86_64', 'rhel-8-x86_64', | ||
# 'centos-stream-9-x86_64', 'rhel-9-x86_64', 'fedora-40-x86_64', | ||
# 'fedora-39-x86_64', 'fedora-rawhide-x86_64' | ||
source /etc/os-release | ||
if [ "$ID" == "centos" ]; then | ||
ID='centos-stream' | ||
fi | ||
VERSION_MAJOR=$(echo ${VERSION_ID} | cut -d '.' -f 1) | ||
COPR_REPO="${ID}-${VERSION_MAJOR}-$(uname -m)" | ||
|
||
#get yggdrasil | ||
curl https://copr.fedorainfracloud.org/coprs/g/yggdrasil/latest/repo/$ID-$VERSION_MAJOR/group_yggdrasil-latest-$ID-$VERSION_MAJOR.repo \ | ||
-o /etc/yum.repos.d/yggdrasil.repo | ||
|
||
dnf install -y yggdrasil yggdrasil-worker-package-manager --disablerepo=* --enablerepo=*yggdrasil* | ||
|
||
# These PR packit builds have an older version number for some reason than the released... | ||
dnf remove -y rhc | ||
dnf copr -y enable packit/RedHatInsights-rhc-${ghprbPullId} ${COPR_REPO} | ||
dnf install -y rhc --disablerepo=* --enablerepo=*rhc* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters