mirror-test/.drone.yml
Shaquille Soekhlal 2f2e235203
Some checks failed
continuous-integration/drone/push Build is failing
Update '.drone.yml'
2022-03-28 18:19:55 +02:00

26 lines
694 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/sh build && usermod -L build
- echo "build ALL=(ALL) NOPASSWD : ALL" >> /etc/sudoers
- echo "root ALL=(ALL) NOPASSWD : ALL" >> /etc/sudoers
- chown -R build:build /drone/src
- su build
- MAKEFLAGS="-j$(nproc)" makepkg --syncdeps