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