chore: update drone settings
Some checks are pending
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is pending

- change pipeline name
- change step names
- change container to use
This commit is contained in:
Ben Vincent 2024-08-26 22:34:34 +10:00
parent 23a12aa026
commit ac56acf136
2 changed files with 9 additions and 22 deletions

View File

@ -1,6 +1,6 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: almalinux8
trigger: trigger:
event: event:
@ -9,22 +9,9 @@ trigger:
- pull_request - pull_request
steps: steps:
- name: build_el8 - name: build
image: almalinux:8.10 image: git.query.consul/unkin/almalinux8:latest
commands: commands:
# 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
- 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
# Clean and update repository cache
- dnf clean all
- dnf makecache
# Install RPMFusion # 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/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 - dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
@ -35,15 +22,15 @@ steps:
# Run the `make` command # Run the `make` command
- make build - make build
- name: upload_el8 - name: upload
image: curlimages/curl:latest image: git.query.consul/unkin/almalinux8:latest
environment: environment:
GITEA_TOKEN: GITEA_PASSWORD:
from_secret: gitea_package_token from_secret: gitea_password
commands: commands:
- > - >
for rpm in /drone/src/rpmbuild/RPMS/*/*.rpm; do 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 curl --user droneci:$GITEA_PASSWORD --upload-file $rpm https://git.query.consul/api/packages/unkin/rpm/almalinux/el8/upload
done done
when: when:
branch: branch: