diff options
author | Johannes Wienke | 2021-10-02 19:05:30 +0200 |
---|---|---|
committer | Johannes Wienke | 2021-10-02 19:05:30 +0200 |
commit | de821a6fdc036b5966ae2e4b68e3e7200f0ecdb0 (patch) | |
tree | 26b74b5e201ed0be9fce034eab31689768019ba8 | |
parent | e12a0b1256bb18d1852d65b435a20da348ab9b1d (diff) | |
download | aur-de821a6fdc036b5966ae2e4b68e3e7200f0ecdb0.tar.gz |
ci: add a Gitlab CI config
-rw-r--r-- | .gitlab-ci.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..bc1444377f1f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,42 @@ +build: + stage: build + image: + name: countstarlight/makepkg:latest + entrypoint: [""] + before_script: + - yay -Syu --noconfirm + script: + - | + depends=() + makedepends=() + checkdepends=() + . ./PKGBUILD + deps=( "${depends[@]}" "${makedepends[@]}" "${checkdepends[@]}" ) + (pacman --deptest "${deps[@]}" || true) | xargs yay -Sy --noconfirm + - makepkg -f + artifacts: + untracked: false + expire_in: 5 days + paths: + - '*.pkg.tar.zst' + +deploy: + stage: deploy + image: bitnami/git:latest + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + variables: + GIT_DEPTH: "0" + before_script: + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + + - ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + + script: + - git remote add aur ssh://aur@aur.archlinux.org/mopidy-internetarchive.git + - git push aur origin/master:master |