Update .gitlab-ci.yml

This commit is contained in:
Ryan 2019-06-12 15:04:18 +00:00
parent d3476ced66
commit c0225e0bc1

View file

@ -8,4 +8,8 @@ build:package:
stage: compile
image: archlinux/base
script:
- makepkg -si
- pacman -S --needed --noconfirm sudo # Install sudo
- useradd builduser -m # Create the builduser
- passwd -d builduser # Delete the buildusers password
- printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow the builduser passwordless sudo
- sudo -u builduser 'bash -c makepkg -s'