strategy:
matrix:
env:
- - { NAME: "centos-7", OS: "centos:7" }
- - { NAME: "rocky-8", OS: "rockylinux/rockylinux:8" }
- - { NAME: "rocky-9", OS: "rockylinux/rockylinux:9" }
+ - { NAME: "centos-7", OS: "centos:7", BADNODE: true }
+ - { NAME: "rocky-8", OS: "rockylinux/rockylinux:8", BADNODE: false }
+ - { NAME: "rocky-9", OS: "rockylinux/rockylinux:9", BADNODE: false }
fail-fast: false
runs-on: ubuntu-latest
env:
HOSTAPD_BUILD_DIR: /tmp/eapol_test.ci
HOSTAPD_GIT_TAG: hostapd_2_8
+ ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.env.BADNODE }}
name: "RPM build"
steps:
+ - name: Fix up CentOS 7 repositories
+ if: ${{ matrix.env.NAME == 'centos-7' }}
+ run: |
+ sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+ sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
# Required so that the checkout action uses git protocol rather than the GitHub REST API.
# make rpm requires the FR directory to be a git repository.
- name: Install recent git for CentOS 7
strategy:
matrix:
env:
- - { NAME: "centos-7", OS: "centos:7" }
- - { NAME: "rocky-8", OS: "rockylinux/rockylinux:8" }
- - { NAME: "rocky-9", OS: "rockylinux/rockylinux:9" }
+ - { NAME: "centos-7", OS: "centos:7", BADNODE: true }
+ - { NAME: "rocky-8", OS: "rockylinux/rockylinux:8", BADNODE: false }
+ - { NAME: "rocky-9", OS: "rockylinux/rockylinux:9", BADNODE: false }
fail-fast: false
runs-on: ubuntu-latest
container:
image: ${{ matrix.env.OS }}
+ env:
+ ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.env.BADNODE }}
+
name: "RPM install test"
steps:
+ - name: Fix up CentOS 7 repositories
+ if: ${{ matrix.env.NAME == 'centos-7' }}
+ run: |
+ sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+ sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
- name: Install yum
if: ${{ matrix.env.NAME == 'rocky-9'}}
run: |
ARG from=centos:7
FROM ${from} as build
+#
+# CentOS 7 is now EOL, so we need to fix up the repo source
+#
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
+
#
# Install devtools like make and git and the EPEL
# repository for freetds and hiredis
# Install GCC that has the requisite support for C11 keywords and atomics
#
RUN yum install -y centos-release-scl
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
RUN yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++
ENV CC=/opt/rh/devtoolset-8/root/usr/bin/gcc
ARG from=DOCKER_IMAGE
FROM ${from} as build
+ifelse(OS_VER, 7, `dnl
+#
+# CentOS 7 is now EOL, so we need to fix up the repo source
+#
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+')dnl
+
ifelse(OS_VER, `9', `dnl
#
# Install yum
# Install GCC that has the requisite support for C11 keywords and atomics
#
RUN yum install -y centos-release-scl
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
RUN yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++
ENV CC=/opt/rh/devtoolset-8/root/usr/bin/gcc
ARG from=centos:7
FROM ${from} as build
+#
+# CentOS 7 is now EOL, so we need to fix up the repo source
+#
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
#
COPY --from=build /root/rpms /tmp/
+#
+# CentOS 7 is now EOL, so we need to fix up the repo source
+#
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+
# Use LTB's openldap packages intead of the distribution version to avoid linking against NSS
RUN echo $'[ltb-project]\n\
ARG from=DOCKER_IMAGE
FROM ${from} as build
+ifelse(OS_VER, 7, `dnl
+#
+# CentOS 7 is now EOL, so we need to fix up the repo source
+#
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+')dnl
+
ifelse(OS_VER, `7', `', `dnl
#
# Install yum
COPY --from=build /root/rpms /tmp/
+ifelse(OS_VER, 7, `dnl
+#
+# CentOS 7 is now EOL, so we need to fix up the repo source
+#
+RUN sed -i "s/^mirrorlist/#mirrorlist/g" /etc/yum.repos.d/CentOS-*
+RUN sed -i "s|#\s*baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
+')dnl
+
ifelse(OS_VER, `7', `', `dnl
#
# Install yum