From a28f83c7f29356d3b337d18135d1d13383258ad1 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sun, 25 Aug 2024 13:12:37 +1000 Subject: [PATCH] feat: updating droneci tasks - update dnf repo management - update command to install packages - add rpmfusion for mpv/ffmpeg - add triggers --- .drone.yml | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8aa730a..be1438c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,42 +2,33 @@ kind: pipeline type: docker name: default +trigger: + branch: + - master + steps: - name: build image: almalinux:8.10 commands: - # Add custom EPEL repository - - echo -e "[epel]\nname=epel repository\nbaseurl=https://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 + # Remove default repos + - rm -rf /etc/yum.repos.d/*.repo - # Add custom BaseOS repository - - echo -e "[baseos]\nname=baseos repository\nbaseurl=https://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 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 + - 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 + - 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 + - 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 - # Add custom AppStream repository - - echo -e "[appstream]\nname=appstream repository\nbaseurl=https://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=https://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 + # Install RPMFusion + - dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpmdevtools + - dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm # Clean and update repository cache - dnf clean all - 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