mirror-test/.drone.yml

26 lines
688 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:13:04 +00:00
- useradd --no-create-home --shell=/bin/sh build && usermod -L build
2022-03-28 16:09:20 +00:00
- echo "build ALL=(ALL) NOPASSWD':' ALL" >> /etc/sudoers
- echo "root ALL=(ALL) NOPASSWD':' ALL" >> /etc/sudoers
2022-03-28 16:15:36 +00:00
- chown -R build:build /drone/src
2022-03-28 16:13:04 +00:00
- su build
2022-03-28 15:02:00 +00:00
- MAKEFLAGS="-j$(nproc)" makepkg --syncdeps