From 4fc0965d826359ca4f6667b8202bf60234aada1e Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Fri, 10 May 2024 12:06:31 +0200 Subject: [PATCH] Work around broken Docker image by Rocky Linux (until CentOS 7 is EOL) --- .github/images/centos.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/images/centos.Dockerfile b/.github/images/centos.Dockerfile index a26b4a8..c44c022 100644 --- a/.github/images/centos.Dockerfile +++ b/.github/images/centos.Dockerfile @@ -2,8 +2,8 @@ ARG image=centos/centos:latest FROM quay.io/$image # Install dependencies -RUN yum update -y -RUN yum install -y autoconf automake gcc libtool make diffutils file gzip +RUN if command -v yum > /dev/null; then dnf=yum; fi; ${dnf:-dnf} update -y +RUN if command -v yum > /dev/null; then dnf=yum; fi; ${dnf:-dnf} install -y autoconf automake gcc libtool make diffutils file gzip # Add source code ADD . /src