Compare commits
1 Commits
fd94187ef4
...
cf084043f9
| Author | SHA1 | Date | |
|---|---|---|---|
| cf084043f9 |
41
.drone.yml
41
.drone.yml
@ -2,42 +2,33 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: almalinux:8.10
|
image: almalinux:8.10
|
||||||
commands:
|
commands:
|
||||||
# Add custom EPEL repository
|
# Remove default repos
|
||||||
- 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
|
- rm -rf /etc/yum.repos.d/*.repo
|
||||||
|
|
||||||
# Add custom BaseOS repository
|
# Add edgecache repos
|
||||||
- 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
|
- 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
|
||||||
# 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
|
||||||
- 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
|
- 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 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
|
|
||||||
|
|
||||||
# Clean and update repository cache
|
# Clean and update repository cache
|
||||||
- dnf clean all
|
- dnf clean all
|
||||||
- dnf makecache
|
- dnf makecache
|
||||||
|
|
||||||
|
# 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
|
# Install the required packages using custom repositories
|
||||||
- dnf install -y \
|
- dnf install -y golang gcc gcc-c++ make git sqlite-devel taglib-devel ffmpeg mpv rpmdevtools wget systemd sqlite taglib
|
||||||
golang \
|
|
||||||
gcc \
|
|
||||||
gcc-c++ \
|
|
||||||
make \
|
|
||||||
git \
|
|
||||||
sqlite-devel \
|
|
||||||
taglib-devel \
|
|
||||||
ffmpeg \
|
|
||||||
mpv \
|
|
||||||
rpmdevtools \
|
|
||||||
wget \
|
|
||||||
systemd \
|
|
||||||
sqlite \
|
|
||||||
taglib
|
|
||||||
|
|
||||||
# Run the `make` command
|
# Run the `make` command
|
||||||
- make
|
- make
|
||||||
|
|||||||
Reference in New Issue
Block a user