From ec82060c8515a6aa596bdec78a7a94899d10186a Mon Sep 17 00:00:00 2001 From: nyyu Date: Wed, 19 May 2021 09:48:07 +0200 Subject: [PATCH] ci --- .drone.yml | 17 +++++++++++++++++ build.sh | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .drone.yml create mode 100755 build.sh 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