[6.0] eeb29798a Update make-rpm-packages.sh from 7.2
Martin Blix Grydeland
martin at varnish-software.com
Tue Nov 8 10:03:09 UTC 2022
commit eeb29798ac75d65732d0b6fa4636aab80de7b29d
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Oct 12 15:03:32 2022 +0200
Update make-rpm-packages.sh from 7.2
diff --git a/.circleci/make-rpm-packages.sh b/.circleci/make-rpm-packages.sh
index 56acdad05..848084bc4 100755
--- a/.circleci/make-rpm-packages.sh
+++ b/.circleci/make-rpm-packages.sh
@@ -6,21 +6,28 @@ echo "PARAM_RELEASE: $PARAM_RELEASE"
echo "PARAM_DIST: $PARAM_DIST"
if [ -z "$PARAM_RELEASE" ]; then
- echo "Env variable PARAM_RELEASE is not set! For example PARAM_RELEASE=8, for CentOS 8"
+ echo "Env variable PARAM_RELEASE is not set! For example PARAM_RELEASE=stream, for CentOS stream"
exit 1
elif [ -z "$PARAM_DIST" ]; then
echo "Env variable PARAM_DIST is not set! For example PARAM_DIST=centos"
exit 1
fi
-yum install -y epel-release
-
-if [ "$PARAM_DIST" = centos ]; then
- if [ "$PARAM_RELEASE" = 8 ]; then
- dnf install -y 'dnf-command(config-manager)'
- yum config-manager --set-enabled powertools
- fi
-fi
+case "$PARAM_DIST:$PARAM_RELEASE" in
+ almalinux:9)
+ dnf install -y 'dnf-command(config-manager)'
+ yum config-manager --set-enabled crb
+ yum install -y epel-release
+ ;;
+ centos:stream|almalinux:8)
+ dnf install -y 'dnf-command(config-manager)'
+ yum config-manager --set-enabled powertools
+ yum install -y epel-release
+ ;;
+ centos:7)
+ yum install -y epel-release
+ ;;
+esac
yum install -y rpm-build yum-utils
More information about the varnish-commit
mailing list