summarylogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: edb8b1dd16745168f84b76d9a8817a3b02dfb79a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
stages:
  - build

build:
  stage: build
  image: archlinux:base-devel
  script:
    - pacman -Syu --noconfirm
    - useradd builduser -m
    - passwd -d builduser
    - printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers
    - sudo -u builduser makepkg -s --noconfirm
    - "bash -c 'source PKGBUILD && curl --header \"JOB-TOKEN: $CI_JOB_TOKEN\" --upload-file \"$pkgname-$pkgver-$pkgrel-any.pkg.tar.zst\" \"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/$pkgname/$pkgver-$pkgrel/$pkgname-$pkgver-$pkgrel-any.pkg.tar.zst\"'"
  timeout: 2h