rpmbuild-internal-ca-certif.../.drone.yml
Ben Vincent 9520c96f90
Some checks failed
continuous-integration/drone/push Build is failing
feat: setup deployment
- add drone.yml
- add makefile
- add spec file
- add vault intermediate/root ca files
2024-08-25 22:58:25 +10:00

40 lines
1.1 KiB
YAML

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_TOKEN:
from_secret: gitea_package_token
commands:
- >
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do
curl --user droneci:${GITEA_TOKEN} --upload-file $rpm https://git.query.consul/api/v1/packages/unkin/rpm/almalinux/el8/upload
done
when:
branch:
- master
event:
- push