From 3ade75490c9de1cb1bf9a76e484b94de0cf5d2fe Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 21 Feb 2022 15:09:42 +0100 Subject: [PATCH] Add RHEL UBI 8 to rpmbuild action --- .github/workflows/rpmbuild.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/rpmbuild.yml b/.github/workflows/rpmbuild.yml index d9220a7..8cb71e6 100644 --- a/.github/workflows/rpmbuild.yml +++ b/.github/workflows/rpmbuild.yml @@ -64,3 +64,22 @@ jobs: with: name: cc-metric-collector SRPM AlmaLinux 8.5 path: ${{ steps.rpm.outputs.source_rpm_path }} + build-rhel-ubi8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: TomTheBear/rpmbuild@rh-ubi8 + id: rpm + name: Build RPM package on Red Hat Universal Base Image 8 + with: + spec_file: "./scripts/cc-metric-collector.spec" + - name: Save RPM as artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: cc-metric-collector RPM Red Hat Universal Base Image 8 + path: ${{ steps.rpm.outputs.rpm_dir_path }} + - name: Save SRPM as artifact + uses: actions/upload-artifact@v1.0.0 + with: + name: cc-metric-collector SRPM Red Hat Universal Base Image 8 + path: ${{ steps.rpm.outputs.source_rpm_path }}