aboutsummaryrefslogtreecommitdiff
path: root/builds/weekly/alpine-latest.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'builds/weekly/alpine-latest.yaml')
-rw-r--r--builds/weekly/alpine-latest.yaml75
1 files changed, 44 insertions, 31 deletions
diff --git a/builds/weekly/alpine-latest.yaml b/builds/weekly/alpine-latest.yaml
index ce948f5..1706dab 100644
--- a/builds/weekly/alpine-latest.yaml
+++ b/builds/weekly/alpine-latest.yaml
@@ -1,39 +1,52 @@
# this build is for a runner VM that is accessible via
# builds.cyberia.club
+image: alpine/edge
+packages:
+ - e2fsprogs
+ - qemu-img
+ - qemu-system-x86_64
+ - rsync
+ - sfdisk
+sources:
+ - https://git.sr.ht/~sircmpwn/builds.sr.ht
environment:
arch: x86_64
release: latest
slaves:
- - deploy@192.168.3.3
- - deploy@192.168.3.4
-image: alpine/edge
-packages:
-- e2fsprogs
-- qemu-img
-- qemu-system-x86_64
-- rsync
-- sfdisk
+ - deploy@192.168.3.3
+ - deploy@192.168.3.4
secrets:
-# deploy@muninn.cyberia.club
-- 122dfa69-09f4-433f-85d0-5c97c010e08c
-sources:
-- https://git.sr.ht/~sircmpwn/builds.sr.ht
-tasks:
-- genimg: 'cd builds.sr.ht/images/alpine/$release
-
- sudo ./genimg $arch'
-- kvm: "if grep -i amd /proc/cpuinfo\nthen\n sudo modprobe kvm_amd\nelse\n sudo\
- \ modprobe kvm_intel\nfi\nsleep 1\nsudo chown build:build /dev/kvm"
-- sanity-check: 'cd builds.sr.ht
-
- MEMORY=1024 ./images/control alpine/$release sanity-check'
-- deploy: "cd builds.sr.ht/images/alpine/$release\necho \"StrictHostKeyChecking=no\"\
- \ >> ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n ssh $server mkdir -p\
- \ /var/lib/images/alpine/$release/$arch\n rsync -rzP $arch/root.img.qcow2 \\\n\
- \ ${server}:/var/lib/images/alpine/$release/$arch/new_root.img.qcow2\n ssh\
- \ $server \\\n mv /var/lib/images/alpine/$release/$arch/new_root.img.qcow2\
- \ \\\n /var/lib/images/alpine/$release/$arch/root.img.qcow2\ndone"
+ # deploy@muninn.cyberia.club & deploy@dredd.cyberia.club
+ - 122dfa69-09f4-433f-85d0-5c97c010e08c
triggers:
-- action: email
- condition: failure
- to: j3s <j3s@c3f.net>
+ - action: email
+ condition: failure
+ to: j3s <j3s@c3f.net>
+tasks:
+ - genimg: |
+ cd builds.sr.ht/images/alpine/$release
+ sudo ./genimg $arch
+ - kvm: |
+ if grep -i amd /proc/cpuinfo
+ then
+ sudo modprobe kvm_amd
+ else
+ sudo modprobe kvm_intel
+ fi
+ sleep 1
+ sudo chown build:build /dev/kvm
+ - sanity-check: |
+ cd builds.sr.ht
+ MEMORY=1024 ./images/control alpine/$release sanity-check
+ - deploy: |
+ cd builds.sr.ht/images/alpine/$release
+ echo "StrictHostKeyChecking=no" >> ~/.ssh/config
+ for server in "${slaves[@]}"
+ do
+ ssh $server mkdir -p /var/lib/images/alpine/$release/$arch
+ rsync -rzP $arch/root.img.qcow2 \
+ ${server}:/var/lib/images/alpine/$release/$arch/new_root.img.qcow2
+ ssh $server \
+ mv /var/lib/images/alpine/$release/$arch/new_root.img.qcow2 \
+ /var/lib/images/alpine/$release/$arch/root.img.qcow2
+ done