Compare commits

..

1 Commits

Author SHA1 Message Date
a77ce8eb57 feat: updating droneci tasks
Some checks failed
continuous-integration/drone/pr Build is failing
- update dnf repo management
- update command to install packages
- add triggers
2024-08-25 13:18:16 +10:00

View File

@ -10,16 +10,13 @@ steps:
- name: build
image: almalinux:8.10
commands:
# Add custom EPEL repository
# Remove default repos
- rm -rf /etc/yum.repos.d/*.repo
# Add edgecache repos
- echo -e "[epel]\nname=epel repository\nbaseurl=http://edgecache.query.consul/epel/8/Everything/x86_64\ngpgkey=http://edgecache.query.consul/epel/RPM-GPG-KEY-EPEL-8\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/epel.repo
# Add custom BaseOS repository
- echo -e "[baseos]\nname=baseos repository\nbaseurl=http://edgecache.query.consul/almalinux/8.10/BaseOS/x86_64/os\ngpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-8\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/baseos.repo
# Add custom AppStream repository
- echo -e "[appstream]\nname=appstream repository\nbaseurl=http://edgecache.query.consul/almalinux/8.10/AppStream/x86_64/os\ngpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-8\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/appstream.repo
# Add custom PowerTools repository
- echo -e "[powertools]\nname=powertools repository\nbaseurl=http://edgecache.query.consul/almalinux/8.10/PowerTools/x86_64/os\ngpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-8\nenabled=1\ngpgcheck=1" > /etc/yum.repos.d/powertools.repo
# Clean and update repository cache
@ -27,21 +24,7 @@ steps:
- dnf makecache
# 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
- 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