This commit is contained in:
parent
eee014441d
commit
ec82060c85
2 changed files with 30 additions and 0 deletions
17
.drone.yml
Normal file
17
.drone.yml
Normal file
|
@ -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
|
13
build.sh
Executable file
13
build.sh
Executable file
|
@ -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
|
Loading…
Add table
Reference in a new issue