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
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:
@@ -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
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
dnf -y config-manager --add-repo https://git.hydrosaber.com/api/packages/hydros/rpm/f43.repo
|
|
||||||
|
|
||||||
dnf -y install rpmdevtools
|
|
||||||
rpmdev-setuptree
|
|
||||||
|
|
||||||
dnf -y builddep $1
|
|
||||||
|
|
||||||
rpmdev-spectool -g -C ~/rpmbuild/SOURCES $1
|
|
||||||
rpmbuild --nodebuginfo --bb $1
|
|
||||||
Reference in New Issue
Block a user