Compare commits

..

1 Commits

Author SHA1 Message Date
79f0f71333 Change to gitea actions
Some checks failed
Build RPMs / Build on AlmaLinux 8 (pull_request) Successful in 3m41s
Build RPMs / Upload RPMs (pull_request) Failing after 29s
- remove .drone.yml
- create .gitea/workflows/deploy.yaml and build.yaml
- install node in default container
2024-09-07 21:17:28 +10:00
2 changed files with 60 additions and 2 deletions

View File

@ -0,0 +1,54 @@
name: Build RPMs
on:
pull_request:
jobs:
build:
name: Build on AlmaLinux 8
runs-on: almalinux-8
container:
image: git.query.consul/unkin/almalinux8:latest
steps:
- name: Install nodejs:20
run: |
dnf module enable -y nodejs:20
dnf install -y nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Install RPMFusion
run: |
dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
- name: Install required packages
run: |
dnf install -y golang gcc gcc-c++ make git sqlite-devel taglib-devel ffmpeg mpv rpmdevtools wget systemd sqlite taglib
- name: Build project
run: make build
upload:
name: Upload RPMs
runs-on: almalinux-8
needs: build
container:
image: git.query.consul/unkin/almalinux8:latest
steps:
- name: Install nodejs:20
run: |
dnf module enable -y nodejs:20
dnf install -y nodejs
- name: Checkout code
uses: actions/checkout@v3
- name: Upload RPMs to Gitea
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in src/rpmbuild/RPMS/*/*.rpm; do
ls -lh $rpm
done

View File

@ -4,7 +4,6 @@ on:
push:
branches:
- master
pull_request:
jobs:
build:
@ -40,6 +39,11 @@ jobs:
container:
image: git.query.consul/unkin/almalinux8:latest
steps:
- name: Install nodejs:20
run: |
dnf module enable -y nodejs:20
dnf install -y nodejs
- name: Checkout code
uses: actions/checkout@v3
@ -47,6 +51,6 @@ jobs:
env:
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
run: |
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do
for rpm in src/rpmbuild/RPMS/*/*.rpm; do
curl --user droneci:${{ secrets.DRONECI_PASSWORD }} --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
done