arch: null artifacts: null environment: arch: amd64 release: '24.10' slaves: - deploy@fra01.builds.sr.ht - deploy@fra02.builds.sr.ht - deploy@patchouli2.sr.ht image: ubuntu/lts oauth: null packages: - debootstrap - e2fsprogs - qemu-system-x86 - qemu-user-static - binfmt-support - rsync - extlinux - fdisk 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 cd images/ubuntu/$release sudo ./genimg $arch' - sanity-check: "cd builds.sr.ht\nif [ -e /dev/kvm ] && [ \"$(uname -m)\" = \"x86_64\"\ \ ]\nthen\n # Ubuntu does not have a kvm group so we just gotta do it this\ \ way\n sudo chown build:build /dev/kvm\n MEMORY=1024 ./images/control ubuntu/$release\ \ sanity-check\nelse\n echo \"KVM unavailable, skipping sanity check\"\nfi" - deploy: "cd builds.sr.ht/images/ubuntu/$release\necho \"StrictHostKeyChecking=no\"\ \ >> ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n ssh $server mkdir -p\ \ /var/lib/images/ubuntu/$release/$arch\n rsync -rzP $arch/root.img.qcow2 \\\n\ \ ${server}:/var/lib/images/ubuntu/$release/$arch/new_root.img.qcow2\n ssh\ \ $server mv \\\n /var/lib/images/ubuntu/$release/$arch/new_root.img.qcow2\ \ \\\n /var/lib/images/ubuntu/$release/$arch/root.img.qcow2\ndone" triggers: - action: email cc: Haowen Liu condition: failure to: ~sircmpwn/sr.ht-image-failures@lists.sr.ht