aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2021-10-25 18:02:46 +0800
committerKunoiSayami <[email protected]>2021-10-25 18:02:46 +0800
commitc2c9d034c6e0d86e73d706982ed7efeafcafdb00 (patch)
tree43a6b4e127d4c9934ea7d800136d5beefbeec821 /.gitlab-ci.yml
parent766b1246a9b12078d54e5b66966a5b69c5dd4586 (diff)
feat(ci): Add gitlab ci configure and script
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..be5c0ac
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,22 @@
+default:
+ image:
+ archlinux:latest
+
+build:
+ tags:
+ - medium
+
+ script:
+ - pacman --noconfirm --needed -Syu base-devel gnupg git
+ - ls
+ - useradd -m build
+ - ls ..
+ - echo 'build ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers
+ - cp -r ../repos-test /home/build/
+ - cd /home/build/repos-test
+ - echo $GPG_PRIV_KEY | base64 -d > ../key.asc
+ - chown -R build:build ../repos-test
+ - su -c "bash -c 'cd repo/pod2man && makepkg -i --noconfirm'" build
+ - su -c 'gpg --import ../key.asc' build
+ - su -c 'BUILD_ONLY='' ./pkgbuild.sh' build
+ - su -m -c './ci-upload.sh' build \ No newline at end of file