Update .gitlab-ci.yml

This commit is contained in:
Ryan 2019-06-12 15:18:39 +00:00
parent f53312b71c
commit 29a75ff935

View file

@ -6,10 +6,6 @@ services:
build:package: build:package:
stage: compile stage: compile
image: archlinux/base image: registry.higherlearning.eu/personal/homelab/docker/arch-pkg-build
script: script:
- pacman -Sy --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' - sudo -u builduser 'bash -c makepkg -s'