Skip to content

Commit

Permalink
Add testing on CentOS Stream 9.
Browse files Browse the repository at this point in the history
  • Loading branch information
adelton committed Nov 5, 2022
1 parent bf9ec09 commit 796a0df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ fedora-latest, fedora-rawhide, centos-stream8 ]
os: [ fedora-latest, fedora-rawhide, centos-stream8, centos-stream9 ]
steps:
- uses: actions/checkout@v2
- name: Set the right OS in the Dockerfile
Expand Down
6 changes: 5 additions & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM registry.fedoraproject.org/fedora
RUN sed -i 's/^enabled.*/enabled=1/' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo || :
RUN if test -f /etc/centos-release ; then dnf install -y 'dnf-command(config-manager)' ; fi
RUN if test -f /etc/centos-release && grep 'CentOS Stream release 8' /etc/centos-release ; then \
dnf config-manager --set-enabled powertools ; fi
RUN if test -f /etc/centos-release && grep 'CentOS Stream release 9' /etc/centos-release ; then \
dnf config-manager --set-enabled crb ; fi
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 if test -f /etc/nsswitch.conf ; then grep hosts: /etc/nsswitch.conf && sed -i 's/^hosts:.*/hosts: files dns myhostname/' /etc/nsswitch.conf ; fi
RUN echo 'set enable-bracketed-paste off' >> ~root/.inputrc
Expand Down

0 comments on commit 796a0df

Please sign in to comment.