From 8604f62b01d3c8e7813ca79c0ce8e284eb19128e Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Mon, 5 Jul 2021 10:01:01 +0200 Subject: [PATCH] Add testing on CentOS 8 Stream. --- .github/workflows/build-test.yaml | 4 ++-- tests/Dockerfile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 3355341..03aedc6 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -14,11 +14,11 @@ jobs: strategy: fail-fast: false matrix: - os: [ fedora-latest, fedora-rawhide ] + os: [ fedora-latest, fedora-rawhide, centos-stream8 ] steps: - uses: actions/checkout@v2 - name: Set the right OS in the Dockerfile - run: sed -i "s#^FROM.*#FROM $( echo ${{ matrix.os }} | sed 's#^fedora-#registry.fedoraproject.org/fedora:#' )#" tests/Dockerfile + run: sed -i "s#^FROM.*#FROM $( echo ${{ matrix.os }} | sed 's#^fedora-#registry.fedoraproject.org/fedora:#; s#^centos-#quay.io/centos/centos:#;' )#" tests/Dockerfile - name: Build image run: docker build -t python-libssh -f tests/Dockerfile . - name: Run container diff --git a/tests/Dockerfile b/tests/Dockerfile index ba53bc6..4cf1021 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -1,4 +1,5 @@ FROM registry.fedoraproject.org/fedora +RUN sed -i 's/^enabled.*/enabled=1/' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo || : RUN dnf install -y --setopt=install_weak_deps=False python3-devel python3-setuptools python3-Cython make gcc libssh-devel openssh-server openssh-clients rpm-build RUN grep hosts: /etc/nsswitch.conf && sed -i 's/^hosts:.*/hosts: files dns myhostname/' /etc/nsswitch.conf RUN echo 'set enable-bracketed-paste off' >> ~root/.inputrc