run: |
yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/git-core-2.30.1-1.ep7.x86_64.rpm
+ # Rocky 9 uses dnf by default. CentOS 7 doesn't have dnf. Install yum on Rocky 9 so all distros work
+ - name: Install yum
+ if: ${{ matrix.env.NAME == 'rocky-9'}}
+ run: |
+ dnf install -y yum
+
- name: Install distro git for Rocky.
if: ${{ startsWith(matrix.env.NAME, 'rocky-') }}
run: |
steps:
+ - name: Install yum
+ if: ${{ matrix.env.NAME == 'rocky-9'}}
+ run: |
+ dnf install -y yum
+
- name: LTB repo for CentOS and Rocky 8
if: ${{ startsWith(matrix.env.NAME, 'centos-') || matrix.env.NAME == 'rocky-8' }}
run: |
ARG from=DOCKER_IMAGE
FROM ${from} as build
+ifelse(OS_VER, `9', `dnl
+#
+# Install yum
+#
+RUN dnf install -y yum
+')dnl
+
#
# Install devtools like make and git and the EPEL
# repository for freetds and hiredis