summarylogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: c2805eefa3998b47794eef5b58ed9a07aa24c920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
image: "registry.devseed.de/all-the-things/docker-archlinux"

stages:
  - build
  - release


before_script:
  - sudo pacman -Sy --noconfirm pacman-contrib
  - git config --global user.email "${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}"
  - git config --global user.name "${GIT_USER_NAME:-$GITLAB_USER_NAME}"

update_hash:
  stage: build
  script:
    # update package hash for integrity check
    - updpkgsums

makepkg:
  stage: build
  needs: ["update_hash"]
  script:
    # Test building a source package
    - sudo -u builder makepkg -C -S --log --noconfirm
    # Test building and installing the package
    - sudo -u builder makepkg -C -i --log --noconfirm

push:
  stage: release
  script:
    - git add PKGBUILD
    - git commit -m "updates hash for AppImage"
    - git push -o ci.skip "https://${GITLAB_USER_NAME}:${RENOVATE_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_BRANCH}"