From ea9dd75d7ef8be10afb33a94e1d391a2dcde8bba Mon Sep 17 00:00:00 2001 From: joshua-stone Date: Fri, 3 Mar 2023 18:35:35 -0500 Subject: [PATCH] feat: Add RPMs from ublue-os/config (#22) --- Containerfile | 2 +- build.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index efd2f23d..e680a5ce 100644 --- a/Containerfile +++ b/Containerfile @@ -10,7 +10,7 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}" ADD build.sh /tmp/build.sh ADD packages.json /tmp/packages.json -COPY --from=ghcr.io/ublue-os/udev-rules:latest /ublue-os-udev-rules.noarch.rpm /tmp/ublue-os-udev-rules.noarch.rpm +COPY --from=ghcr.io/ublue-os/config:latest /rpms /tmp/rpms RUN /tmp/build.sh RUN rm -rf /tmp/* diff --git a/build.sh b/build.sh index 76ec18ad..2158ad86 100755 --- a/build.sh +++ b/build.sh @@ -16,10 +16,12 @@ if [[ "${#EXCLUDED_PACKAGES[@]}" -gt 0 ]]; then EXCLUDED_PACKAGES=($(rpm -qa --queryformat='%{NAME} ' ${EXCLUDED_PACKAGES[@]})) fi -rpm-ostree install \ +wget -P /tmp/rpms \ https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${RELEASE}.noarch.rpm \ - https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${RELEASE}.noarch.rpm \ - /tmp/ublue-os-udev-rules.noarch.rpm \ + https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${RELEASE}.noarch.rpm + +rpm-ostree install \ + /tmp/rpms/*.rpm \ fedora-repos-archive if [[ "${#INCLUDED_PACKAGES[@]}" -gt 0 && "${#EXCLUDED_PACKAGES[@]}" -eq 0 ]]; then