M contrib/crontab => contrib/crontab +1 -0
@@ 15,6 15,7 @@
30 19 * * 5 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" alpine/3.9
30 19 * * 6 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" -a amd64 freebsd/current
0 19 * * 0 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" fedora/30
+0 19 * * 1 chronic /usr/local/bin/submit_image_build -n "Weekly scheduled build image refresh" openbsd/6.5
# Monthly
0 18 1 * 0 chronic /usr/local/bin/submit_image_build -n "Monthly scheduled build image refresh" -a amd64 freebsd/11.x
M images/openbsd/build.yml => images/openbsd/build.yml +11 -16
@@ 1,16 1,12 @@
image: openbsd/latest
packages:
- qemu
- # OpenBSD 6.5 contains rsync, but it might not be 100% compatible
- # - rsync
sources:
- https://git.sr.ht/~sircmpwn/builds.sr.ht
environment:
arch: amd64
release: "6.5"
slaves:
- - deploy@mio.runners.sr.ht
- - deploy@yui.runners.sr.ht
- deploy@azusa.runners.sr.ht
secrets:
- fa00a8d3-7b63-42d5-8060-3bb31c3e3018
@@ 25,15 21,14 @@ tasks:
- sanity-check: |
cd builds.sr.ht
MEMORY=256 ./images/control openbsd/$release sanity-check
-# - deploy: |
-# cd builds.sr.ht/images/openbsd/$release
-# sshopts="-o StrictHostKeyChecking=no"
-# for server in "${slaves[@]}"
-# do
-# rsync \
-# --rsh="ssh $sshopts" -rzP $arch/root.img.qcow2 \
-# ${server}:/var/lib/images/openbsd/$release/$arch/new_root.img.qcow2
-# ssh $sshopts $server \
-# mv /var/lib/images/openbsd/$release/$arch/new_root.img.qcow2 \
-# /var/lib/images/openbsd/$release/$arch/root.img.qcow2
-# done
+ - deploy: |
+ cd builds.sr.ht/images/openbsd/$release
+ echo "StrictHostKeyChecking=no" >> ~/.ssh/config
+ for server in "${slaves[@]}"
+ do
+ ssh $server mkdir -p /var/lib/images/openbsd/$release/$arch
+ rsync -rzP $arch/root.img.qcow2 \
+ ${server}:/var/lib/images/openbsd/$release/$arch/new_root.img.qcow2
+ ssh $server mv /var/lib/images/openbsd/$release/$arch/new_root.img.qcow2 \
+ /var/lib/images/openbsd/$release/$arch/root.img.qcow2
+ done