arch: null artifacts: null environment: arch: x86_64 slaves: - deploy@fra01.builds.sr.ht - deploy@fra02.builds.sr.ht - deploy@patchouli2.sr.ht image: archlinux oauth: null packages: - arch-install-scripts - qemu-base - procps-ng - rsync - reflector - syslinux - pacman-contrib 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/archlinux sudo sed -e ''s/IgnorePkg.*/#IgnorePkg/'' -i /etc/pacman.conf sudo ./genimg' - sanity-check: "cd builds.sr.ht\nif [ -e /dev/kvm ]\nthen\n MEMORY=1024 ./images/control\ \ archlinux sanity-check\nelse\n echo \"KVM unavailable, skipping sanity check\"\ \nfi" - deploy: "cd builds.sr.ht/images/archlinux\necho \"StrictHostKeyChecking=no\" >>\ \ ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n ssh $server mkdir -p /var/lib/images/archlinux/$arch\n\ \ rsync -rzzP $arch/root.img.qcow2 \\\n ${server}:/var/lib/images/archlinux/root.img.qcow2-new\n\ \ ssh $server \\\n mv /var/lib/images/archlinux/root.img.qcow2-new \\\n \ \ /var/lib/images/archlinux/$arch/root.img.qcow2\ndone" triggers: - action: email cc: "Thorben G\xFCnther " condition: failure to: ~sircmpwn/sr.ht-image-failures@lists.sr.ht