Skip to content

Commit

Permalink
chore(ci): pin to single berkley mirror
Browse files Browse the repository at this point in the history
this consistently pins the build to the same mirror so jobs running on
different runners should have the same set of packages to consistently
succeed/fail.
  • Loading branch information
bsherman committed Dec 27, 2023
1 parent 31603da commit 4e5df45
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build-prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ mkdir -p /var/lib/alternatives

# enable more repos
rpm-ostree install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${RELEASE}.noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${RELEASE}.noarch.rpm \
http://mirrors.ocf.berkeley.edu/rpmfusion/free/fedora/rpmfusion-free-release-${RELEASE}.noarch.rpm \
http://mirrors.ocf.berkeley.edu/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-${RELEASE}.noarch.rpm \
fedora-repos-archive

# force use of single rpmfusion mirror
sed -i.bak 's%^metalink=%#metalink=%' /etc/yum.repos.d/rpmfusion-*.repo
sed -i 's%^#baseurl=http://download1.rpmfusion.org%baseurl=http://mirrors.ocf.berkeley.edu/rpmfusion%' /etc/yum.repos.d/rpmfusion-*.repo
# after F40 launches, bump to 41
if [[ "${FEDORA_MAJOR_VERSION}" -ge 40 ]]; then
sed -i 's%free/fedora/releases%free/fedora/development%' /etc/yum.repos.d/rpmfusion-*.repo
fi


### PREPARE CUSTOM KERNEL SUPPORT
if [[ "asus" == "${KERNEL_FLAVOR}" ]]; then
Expand Down

0 comments on commit 4e5df45

Please sign in to comment.