arch: null artifacts: null environment: arch: x86_64 release: '9' slaves: - deploy@fra01.builds.sr.ht - deploy@fra02.builds.sr.ht - deploy@patchouli2.sr.ht image: rockylinux/8 oauth: null packages: - e2fsprogs - qemu-kvm - qemu-img - 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 cd images/rockylinux/$release sudo ./genimg $arch' - sanity-check: 'cd builds.sr.ht sudo chown build:build /dev/kvm MEMORY=1024 PATH=$PATH:/usr/libexec ./images/control rockylinux/$release sanity-check' - deploy: "cd builds.sr.ht/images/rockylinux/$release\necho \"StrictHostKeyChecking=no\"\ \ >>~/.ssh/config\nchmod 600 ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n\ \ ssh $server mkdir -p /var/lib/images/rockylinux/$release/$arch\n rsync -rzP\ \ $arch/root.img.qcow2 \\\n ${server}:/var/lib/images/rockylinux/$release/$arch/new_root.img.qcow2\n\ \ ssh $server \\\n mv /var/lib/images/rockylinux/$release/$arch/new_root.img.qcow2\ \ \\\n /var/lib/images/rockylinux/$release/$arch/root.img.qcow2\ndone" triggers: - action: email cc: Haowen Liu condition: failure to: ~sircmpwn/sr.ht-image-failures@lists.sr.ht