diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13721c44..5e806b54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: cfile_suffix: [common, nvidia] - major_version: [37, 38, 39] + major_version: [37, 38] nvidia_version: [0, 470, 535] exclude: - cfile_suffix: common diff --git a/Containerfile.common b/Containerfile.common index e84bf2f8..686220b1 100644 --- a/Containerfile.common +++ b/Containerfile.common @@ -5,10 +5,10 @@ #Build from base, simpley because it's the smallest image ARG SOURCE_IMAGE="${SOURCE_IMAGE:-base}" ARG BASE_IMAGE="quay.io/fedora-ostree-desktops/${SOURCE_IMAGE}" -ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-37}" +ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}" FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder -ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-37}" +ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}" COPY build*.sh /tmp COPY certs /tmp/certs diff --git a/Containerfile.nvidia b/Containerfile.nvidia index 0f246740..3b9e6a96 100644 --- a/Containerfile.nvidia +++ b/Containerfile.nvidia @@ -5,10 +5,10 @@ #Build from base, simpley because it's the smallest image ARG SOURCE_IMAGE="${SOURCE_IMAGE:-base}" ARG BASE_IMAGE="quay.io/fedora-ostree-desktops/${SOURCE_IMAGE}" -ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-37}" +ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}" FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS builder -ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-37}" +ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-38}" ARG NVIDIA_MAJOR_VERSION="${NVIDIA_MAJOR_VERSION:-470}" COPY build*.sh /tmp diff --git a/build-prep.sh b/build-prep.sh index 7d012a08..46204985 100755 --- a/build-prep.sh +++ b/build-prep.sh @@ -26,6 +26,15 @@ rpm-ostree install \ https://mirrors.rpmfusion.org/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 F39 launches, bump to 40 +if [[ "${FEDORA_MAJOR_VERSION}" -ge 39 ]]; then + sed -i 's%free/fedora/releases%free/fedora/development%' /etc/yum.repos.d/rpmfusion-*.repo +fi + + ### PREPARE BUILD ENV rpm-ostree install \