arch: null artifacts: null environment: arch: amd64 release: 14.x slaves: - deploy@fra01.builds.sr.ht - deploy@fra02.builds.sr.ht - deploy@patchouli2.sr.ht image: freebsd/latest oauth: null packages: - qemu - rsync 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/freebsd/$release sudo ./genimg $arch' - sanity-check: 'cd builds.sr.ht MEMORY=1024 ./images/control freebsd/$release sanity-check' - deploy: "cd builds.sr.ht/images/freebsd/$release\necho \"StrictHostKeyChecking=no\"\ \ >> ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n ssh $server mkdir -p\ \ /var/lib/images/freebsd/$release/$arch\n rsync -rzP $arch/root.img.qcow2 \\\ \n ${server}:/var/lib/images/freebsd/$release/$arch/new_root.img.qcow2\n ssh\ \ $server \\\n mv /var/lib/images/freebsd/$release/$arch/new_root.img.qcow2\ \ \\\n /var/lib/images/freebsd/$release/$arch/root.img.qcow2\ndone" triggers: - action: email condition: failure to: ~sircmpwn/sr.ht-image-failures@lists.sr.ht