Compare commits
No commits in common. "4122aac9a90d99e518e2b71a1bb05f50d172109a" and "92aa1c3edc6a46cd1e8fc123e9e00f605c045b82" have entirely different histories.
4122aac9a9
...
92aa1c3edc
39
.drone.yml
Normal file
39
.drone.yml
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: almalinux8
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: git.query.consul/unkin/almalinux8:latest
|
||||||
|
commands:
|
||||||
|
# Install RPMFusion
|
||||||
|
- 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
|
||||||
|
|
||||||
|
# Install the required packages using custom repositories
|
||||||
|
- dnf install -y golang gcc gcc-c++ make git sqlite-devel taglib-devel ffmpeg mpv rpmdevtools wget systemd sqlite taglib
|
||||||
|
|
||||||
|
# Run the `make` command
|
||||||
|
- make build
|
||||||
|
|
||||||
|
- name: upload
|
||||||
|
image: git.query.consul/unkin/almalinux8:latest
|
||||||
|
environment:
|
||||||
|
GITEA_PASSWORD:
|
||||||
|
from_secret: gitea_password
|
||||||
|
commands:
|
||||||
|
- >
|
||||||
|
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do
|
||||||
|
curl --user droneci:$GITEA_PASSWORD --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
|
||||||
|
done
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- push
|
||||||
@ -1,35 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
- name: Find built packages
|
|
||||||
run: |
|
|
||||||
find /workspace | grep -E \.rpm$
|
|
||||||
@ -1,41 +0,0 @@
|
|||||||
name: Build and Upload RPMs
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
- name: Upload RPMs to Gitea
|
|
||||||
env:
|
|
||||||
DRONECI_PASSWORD: ${{ secrets.DRONECI_PASSWORD }}
|
|
||||||
run: |
|
|
||||||
for rpm in /workspace/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
|
|
||||||
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
.PHONY: all prep download build clean
|
.PHONY: all prep download build clean
|
||||||
|
|
||||||
RPMBUILD := /workspace/src/rpmbuild
|
RPMBUILD := /drone/src/rpmbuild
|
||||||
SOURCES := $(RPMBUILD)/SOURCES
|
SOURCES := $(RPMBUILD)/SOURCES
|
||||||
SPECS := $(RPMBUILD)/SPECS
|
SPECS := $(RPMBUILD)/SPECS
|
||||||
SPECFILE := gonic.spec
|
SPECFILE := gonic.spec
|
||||||
|
|||||||
Reference in New Issue
Block a user