diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a01ef9c4..343408b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: tags: - "*" jobs: - run-ci-tests: + run-ci-tests-stream-8: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -22,6 +22,21 @@ jobs: artifacts: "build/*.rpm,builddeb/*.deb" token: ${{ secrets.GITHUB_TOKEN }} allowUpdates: true + run-ci-tests-stream-9: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Inject slug/short variables + uses: rlespinasse/github-slug-action@v4 + - run: echo $GITHUB_REF_NAME + - run: mkdir build && chmod a+rwx . documentation build + - run: podman build -t quay.io/rigazilla/ci-build-centos-9:latest -f ci-build/centos-stream9.Dockerfile . + - run: podman run -v `pwd`:/home/jboss/cpp-client quay.io/rigazilla/ci-build-centos-9:latest /bin/bash -c "cd cpp-client && INFINISPAN_VERSION=13.0.10.Final CLIENT_VERSION=$GITHUB_REF_NAME PLATFORM_TAG=el9 ./build.sh" + - uses: ncipollo/release-action@v1 + with: + artifacts: "build/*.rpm,builddeb/*.deb" + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true run-ci-tests-win: runs-on: windows-latest steps: diff --git a/ci-build/centos-stream9.Dockerfile b/ci-build/centos-stream9.Dockerfile new file mode 100644 index 00000000..dab71a86 --- /dev/null +++ b/ci-build/centos-stream9.Dockerfile @@ -0,0 +1,46 @@ +FROM quay.io/centos/centos:stream9 + +ENV JAVA_HOME=/usr/lib/jvm/java-11 + +RUN yum -y install 'dnf-command(config-manager)' +RUN yum config-manager --set-enabled crb +RUN dnf -y update && \ + dnf -y install \ + cmake \ + cyrus-sasl-devel \ + cyrus-sasl-plain \ + cyrus-sasl-md5 \ + cyrus-sasl-gssapi \ + iputils \ + java-11-openjdk-devel \ + krb5-workstation \ + krb5-devel \ + maven \ + openssl-devel \ + procps-ng \ + protobuf \ + protobuf-devel \ + python3 \ + rpmdevtools \ + valgrind \ + wget \ + yum-utils && \ + dnf -y group install "Development Tools" && \ + dnf clean all && \ + rm -rf /var/cache/yum + +#RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo +#RUN yum -y install apache-maven + +#RUN cd /usr/lib64 && ln -s libkrb5.so.3.3 libkrb5.so && ln -s libkrb5support.so.0.1 libkrb5support.so + +RUN groupadd -r jboss -g 1000 && useradd -u 1000 -r -g jboss -m -d /home/jboss -s /sbin/nologin -c "JBoss user" jboss && \ + chmod 755 /home/jboss + +# Set the working directory to jboss' user home directory +WORKDIR /home/jboss + +# Specify the user which should be used to execute all commands below +USER jboss + +