mirror-test/.drone.yml

25 lines
651 B
YAML
Raw Normal View History

2022-03-28 15:02:00 +00:00
kind: pipeline
type: docker
name: default
trigger:
2022-03-28 15:56:22 +00:00
event:
- push
2022-03-28 16:04:29 +00:00
2022-03-28 15:02:00 +00:00
steps:
- name: Fetch Upstream
image: archlinux:base-devel
commands:
2022-03-28 15:45:16 +00:00
- pacman -Sy git --noconfirm
2022-03-28 15:02:00 +00:00
- 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
2022-03-28 16:03:46 +00:00
- useradd --no-create-home --shell=/bin/false build && usermod -L build
- echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- su build
2022-03-28 15:02:00 +00:00
- MAKEFLAGS="-j$(nproc)" makepkg --syncdeps