diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b5fa7e..1c72b8d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,4 +8,8 @@ build:package: stage: compile image: archlinux/base script: - - makepkg -si \ No newline at end of file + - 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' \ No newline at end of file