diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e2b30ff --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: build + image: archlinux:base-devel + volumes: + - name: repo + path: /repo + commands: + - ./build.sh + +volumes: +- name: repo + host: + path: /mnt/archlinux/nyyu diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..92931da --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +for d in */ ; do + echo "$d" + cd "$d" + makepkg -s --skippgpcheck + if [ $? -eq 0 ]; then + PKG=$(*.pkg.tar.zst) + cp $PKG /repo/ + repo-add /repo/nyyu.db.tar.zst $PKG + fi + cd .. +done