arch: x86_64 artifacts: null environment: arch: x86_64 release: unstable slaves: - deploy@fra01.builds.sr.ht - deploy@fra02.builds.sr.ht - deploy@patchouli2.sr.ht image: nixos/unstable oauth: null packages: - nixos.qemu_kvm - nixos.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/nixos ./genimg "${release}" "$(uname -m)"' - sanity-check: 'cd builds.sr.ht MEMORY=1024 ./images/control "nixos/${release}" sanity-check' - deploy: "cd builds.sr.ht/images/nixos/$release\necho \"StrictHostKeyChecking=no\"\ \ >> ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n ssh $server mkdir -p\ \ /var/lib/images/nixos/$release/$arch\n rsync -rzP $arch/root.img.qcow2 \\\n\ \ ${server}:/var/lib/images/nixos/$release/$arch/new_root.img.qcow2\n ssh\ \ $server \\\n mv /var/lib/images/nixos/$release/$arch/new_root.img.qcow2 \\\ \n /var/lib/images/nixos/$release/$arch/root.img.qcow2\ndone" triggers: - action: email condition: failure to: Drew DeVault