From 2156a604880413c3981276380746e04db82663ef Mon Sep 17 00:00:00 2001 From: Ivan Garcia Date: Thu, 2 Apr 2026 18:27:08 -0400 Subject: [PATCH 1/3] Test automation --- .github/workflows/rpm-build.yml | 14 +++++++++++--- Makefile | 1 - 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rpm-build.yml b/.github/workflows/rpm-build.yml index 535ebc1..c5f6b72 100644 --- a/.github/workflows/rpm-build.yml +++ b/.github/workflows/rpm-build.yml @@ -19,10 +19,18 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Creating gpg directory - run: mkdir -p ~/.gnupg - - name: Building RPMS run: | sudo ln -sf /usr/bin/podman /usr/bin/docker make all + + - name: Deploying RPMS + if: github.ref == 'refs/heads/main' + uses: appleboy/scp-action@v1 + with: + host: ${{ secrets.REPO_SERVER }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.SSH_PORT }} + source: "el10/*.rpm,el9/*.rpm,el8/*.rpm" + target: ~/ diff --git a/Makefile b/Makefile index 82abc7e..35d0963 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,6 @@ build: podman run --rm -v ${PWD}:/root/rpmbuild/SOURCES:z \ -v ${PWD}/${OUT_DIR}:/root/rpmbuild/RPMS/x86_64:z \ -v ${PWD}/${OUT_DIR}:/root/rpmbuild/RPMS/noarch:z \ - -v ${HOME}/.gnupg:/root/.gnupg:z \ ${IMAGE} \ build-spec /root/rpmbuild/SOURCES/${PACKAGE}.spec From 47a5eb0a3a269c5a557fbe3cc6db26da3eaec3dc Mon Sep 17 00:00:00 2001 From: Ivan Garcia Date: Thu, 2 Apr 2026 18:30:25 -0400 Subject: [PATCH 2/3] Test automation --- .github/workflows/rpm-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rpm-build.yml b/.github/workflows/rpm-build.yml index c5f6b72..f777bb3 100644 --- a/.github/workflows/rpm-build.yml +++ b/.github/workflows/rpm-build.yml @@ -32,5 +32,5 @@ jobs: username: ${{ secrets.SSH_USERNAME }} key: ${{ secrets.SSH_KEY }} port: ${{ secrets.SSH_PORT }} - source: "el10/*.rpm,el9/*.rpm,el8/*.rpm" + source: "./el10/*.rpm,./el9/*.rpm,./el8/*.rpm" target: ~/ From 03b774301719a09f4093c2430ee0006f1c03a52f Mon Sep 17 00:00:00 2001 From: Ivan Garcia Date: Thu, 2 Apr 2026 18:50:28 -0400 Subject: [PATCH 3/3] Test automation --- .github/workflows/rpm-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rpm-build.yml b/.github/workflows/rpm-build.yml index f777bb3..b1c98f2 100644 --- a/.github/workflows/rpm-build.yml +++ b/.github/workflows/rpm-build.yml @@ -3,6 +3,8 @@ name: RPM builds for EL8, EL9 and EL10 on: pull_request: branches: [ "main" ] + push: + branches: [ "main" ] jobs: build-rpms: