Remove entrypoint, use build-rpm action. Once done, upload all in
Some checks failed
Build hyprwayland-scanner / Build and push image (push) Failing after 14s

buildrpm rpms folder to rpm repo
This commit is contained in:
2025-11-30 14:58:14 -05:00
parent 3bd50f8135
commit a707dfc5c1
2 changed files with 13 additions and 33 deletions

View File

@@ -18,34 +18,25 @@ jobs:
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y podman skopeo iptables
sudo apt-get install -y podman
# These stage versions are pinned by https://github.com/renovatebot/renovate
- name: Checkout
uses: actions/checkout@v6 # v5
- name: Setup workspace
shell: bash
run: |
mkdir -p ./rpmbuild/{RPMS,SPECS}
cp ./hyprwayland-scanner/hyprwayland-scanner.spec ./rpmbuild/SPECS
- name: Build RPM
shell: bash
run: |
podman run --rm \
-v ./rpmbuild:/root/rpmbuild:rw,z \
-v ./entrypoint.sh:/root/entrypoint.sh:ro,z \
-w /root \
fedora:latest \
/root/entrypoint.sh /root/rpmbuild/SPECS/hyprwayland-scanner.spec
uses: git.hydrosaber.com/hydros/build-rpm@main
with:
spec-file-path: ./hyprwayland-scanner/hyprwayland-scanner.spec
- name: List everything
- name: Upload package
shell: bash
env:
RPM_PACKAGE_TOKEN: ${{ secrets.RPM_PACKAGE_TOKEN }}
PACKAGE_GROUP: f43
run: |
echo "Home directory"
ls ~
echo "Current directory"
ls .
echo "Supposed rpm location"
ls ./rpmbuild/RPMS/x86_64
find ./rpmbuild/RPMS/ -name "*.rpm" -type f \
-exec curl \
--user eriq12:${RPM_PACKAGE_TOKEN} \
--upload-file {} \
https://git.hydrosaber.com/api/packages/hydros/rpm/${PACKAGE_GROUP}/upload