Compare commits

...

2 Commits

Author SHA1 Message Date
a707dfc5c1 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
2025-11-30 14:58:14 -05:00
3bd50f8135 Add repo to entrypoint 2025-11-30 14:21:13 -05:00
2 changed files with 13 additions and 31 deletions

View File

@@ -18,34 +18,25 @@ jobs:
shell: bash shell: bash
run: | run: |
sudo apt-get update 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 # These stage versions are pinned by https://github.com/renovatebot/renovate
- name: Checkout - name: Checkout
uses: actions/checkout@v6 # v5 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 - name: Build RPM
shell: bash uses: git.hydrosaber.com/hydros/build-rpm@main
run: | with:
podman run --rm \ spec-file-path: ./hyprwayland-scanner/hyprwayland-scanner.spec
-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
- name: List everything - name: Upload package
shell: bash shell: bash
env:
RPM_PACKAGE_TOKEN: ${{ secrets.RPM_PACKAGE_TOKEN }}
PACKAGE_GROUP: f43
run: | run: |
echo "Home directory" find ./rpmbuild/RPMS/ -name "*.rpm" -type f \
ls ~ -exec curl \
echo "Current directory" --user eriq12:${RPM_PACKAGE_TOKEN} \
ls . --upload-file {} \
echo "Supposed rpm location" https://git.hydrosaber.com/api/packages/hydros/rpm/${PACKAGE_GROUP}/upload
ls ./rpmbuild/RPMS/x86_64

View File

@@ -1,9 +0,0 @@
#!/usr/bin/env bash
dnf -y install rpmdevtools
rpmdev-setuptree
dnf -y builddep $1
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
rpmbuild --nodebuginfo --bb $1