Skip to content

Commit

Permalink
chore(ci): additional corrections to use of RPMFUSION_MIRROR (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Feb 25, 2024
1 parent 50bedce commit 4b13c0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Containerfile.nvidia
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-39}"
ARG NVIDIA_MAJOR_VERSION="${NVIDIA_MAJOR_VERSION:-545}"
ARG KERNEL_FLAVOR="{KERNEL_FLAVOR:-main}"
ARG RPMFUSION_MIRROR="{RPMFUSION_MIRROR:-}"
ARG RPMFUSION_MIRROR=""

COPY build*.sh /tmp
COPY certs /tmp/certs
Expand Down
8 changes: 6 additions & 2 deletions build-prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ fi
mkdir -p /var/lib/alternatives

# enable more repos
RPMFUSION_MIRROR_RPMS="https://mirrors.rpmfusion.org"
if [ -n "${RPMFUSION_MIRROR}" ]; then
RPMFUSION_MIRROR_RPMS=${RPMFUSION_MIRROR}
fi
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 \
${RPMFUSION_MIRROR_RPMS}/free/fedora/rpmfusion-free-release-${RELEASE}.noarch.rpm \
${RPMFUSION_MIRROR_RPMS}/nonfree/fedora/rpmfusion-nonfree-release-${RELEASE}.noarch.rpm \
fedora-repos-archive

if [ -n "${RPMFUSION_MIRROR}" ]; then
Expand Down

0 comments on commit 4b13c0c

Please sign in to comment.