...
 
Commits (2)
......@@ -12,16 +12,21 @@ makepkg:
- echo 'SigLevel = Required TrustedOnly' >> /etc/pacman.conf
- pacman --sync --refresh --sysupgrade --noconfirm
- pacman --sync --noconfirm base-devel devtools
- useradd --home-dir /root --groups root,wheel --shell /bin/bash build
- chmod 770 /root
- useradd --create-home --shell /bin/bash build
- "echo 'build ALL = NOPASSWD: /usr/bin/pacman' > /etc/sudoers.d/build"
- "[ -n \"$PACKAGER\" ] && echo \"PACKAGER='$PACKAGER'\" > /home/build/.makepkg.conf"
- echo "MAKEFLAGS='-j$(nproc)'" >> /home/build/.makepkg.conf
script:
- ulimit -c 0
- sudo -u build -- makepkg --syncdeps
- sudo -u build -- makepkg --syncdeps --noconfirm
artifacts:
name: $CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA
expire_in: 1 week
paths:
- "*.pkg.tar.xz"
only:
changes:
- PKGBUILD
commitpkg:
stage: deploy
......