mirror-test/.drone.yml
2022-03-28 18:06:13 +02:00

25 lines
659 B
YAML

kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: Fetch Upstream
image: archlinux:base-devel
commands:
- pacman -Sy git --noconfirm
- git remote add upstream https://git.tau.aperturect.com/Hello_User/mirror-test.git
- git fetch upstream
- git merge upstream/main
- name: Build linux-vfio
image: archlinux:base-devel
commands:
- pacman -Syu --noconfirm
- useradd --no-create-home --shell=/bin/false build && usermod -L build
- echo "build ALL=(ALL) NOPASSWD&#58: ALL" >> /etc/sudoers
- echo "root ALL=(ALL) NOPASSWD&#58: ALL" >> /etc/sudoers
- su build
- MAKEFLAGS="-j$(nproc)" makepkg --syncdeps