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