arch: null artifacts: null environment: arch: x86_64 release: edge slaves: - deploy@cirno2.sr.ht - deploy@patchouli2.sr.ht image: alpine/edge oauth: null packages: - e2fsprogs - qemu-img - qemu-system-x86_64 - rsync - sfdisk repositories: null secrets: - fa00a8d3-7b63-42d5-8060-3bb31c3e3018 shell: null 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" triggers: - action: email condition: failure to: Drew DeVault