From d8a24c4d7b0c003e15d59a67a9484a2c2da7290d Mon Sep 17 00:00:00 2001 From: Paul Abel <128620221+pdabelf5@users.noreply.github.com> Date: Thu, 1 Aug 2024 11:12:32 +0100 Subject: [PATCH] allow nginx ubi mainline or stable to build (#6113) --- build/dependencies/Dockerfile.ubi-ppc64le | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/dependencies/Dockerfile.ubi-ppc64le b/build/dependencies/Dockerfile.ubi-ppc64le index 516ed19a1c..32ff828b5c 100644 --- a/build/dependencies/Dockerfile.ubi-ppc64le +++ b/build/dependencies/Dockerfile.ubi-ppc64le @@ -12,8 +12,10 @@ RUN mkdir -p /nginx/; \ # only build for ppc64le but make multiarch image for mounting [ $(uname -p) != ppc64le ] && exit 0; \ rpm --import https://nginx.org/keys/nginx_signing.key \ + && MINOR_VERSION=$(echo ${NGINX_VERSION} | cut -d '.' -f 2) \ + && if [ $(( $MINOR_VERSION % 2)) -eq 0 ]; then echo mainline=""; else mainline="mainline/"; fi \ && printf "%s\n" "[nginx]" "name=nginx src repo" \ - "baseurl=https://nginx.org/packages/mainline/centos/9/SRPMS" \ + "baseurl=https://nginx.org/packages/${mainline}centos/9/SRPMS" \ "gpgcheck=1" "enabled=1" "module_hotfixes=true" >> /etc/yum.repos.d/nginx.repo \ && dnf install rpm-build gcc make dnf-plugins-core which -y \ && dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \