Skip to content

Commit

Permalink
Add testing on CentOS 8 Stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Jul 5, 2021
1 parent c4a8caf commit 8604f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8604f62

Please sign in to comment.