Commit e7dd0f91 authored by Seblu's avatar Seblu
Browse files

Various CI improvments

- Add ~/.makepkg.conf in CI
- Allow pipelines trigger from web
parent fd62a6bc
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -12,8 +12,10 @@ 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
    - 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 --noconfirm
@@ -26,6 +28,7 @@ makepkg:
  only:
    refs:
      - tags
      - web

commitpkg:
  stage: deploy
@@ -47,3 +50,4 @@ commitpkg:
  only:
    refs:
      - tags
      - web