From d2f74001deb7fc769fee7827d968dec58f56d5f1 Mon Sep 17 00:00:00 2001 From: Ludovic <54670129+lbr38@users.noreply.github.com> Date: Mon, 22 Jul 2024 13:58:37 +0200 Subject: [PATCH] 2.2.15 --- .github/workflows/build-rpm.yml | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/.github/workflows/build-rpm.yml b/.github/workflows/build-rpm.yml index 12df7b7..91118c5 100644 --- a/.github/workflows/build-rpm.yml +++ b/.github/workflows/build-rpm.yml @@ -101,6 +101,65 @@ jobs: path: /tmp/linupdate-test-build-${{ env.VERSION }}.noarch.rpm retention-days: 1 + # Try to install packages on CentOS 7 + install-centos7: + name: Install on CentOS 7 + needs: + build-rpm + runs-on: ubuntu-latest + container: + image: centos:7 + options: --user root + env: + # Force to use node16 (for actions/checkout@v3) + ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16 + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Get linupdate version + run: echo "VERSION=$(cat ${GITHUB_WORKSPACE}/version)" >> $GITHUB_ENV + + - name: Install CentOS7 archive repositories + run: | + rm /etc/yum.repos.d/* -f + + echo "[os] + name=os repo + baseurl=https://vault.centos.org/7.9.2009/os/x86_64/ + enabled=1 + gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7 + gpgcheck=1" > /etc/yum.repos.d/os.repo + + echo "[extras] + name=extras repo + baseurl=https://vault.centos.org/7.9.2009/extras/x86_64/ + enabled=1 + gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7 + gpgcheck=1" > /etc/yum.repos.d/extras.repo + + echo "[updates] + name=updates repo + baseurl=https://vault.centos.org/7.9.2009/updates/x86_64/ + enabled=1 + gpgkey=https://vault.centos.org/RPM-GPG-KEY-CentOS-7 + gpgcheck=1" > /etc/yum.repos.d/updates.repo + + yum clean all + + # Download builded deb package artifact + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: linupdate-test-build-${{ env.VERSION }}.noarch.rpm + + - name: Install package + run: | + dnf update -y + yum clean all + yum --nogpgcheck localinstall -y ./linupdate-test-build-${{ env.VERSION }}.noarch.rpm + # Try to install packages on latest Fedora install-fedora: