~sircmpwn/builds.sr.ht

builds.sr.ht/images/netbsd/build.yml -rw-r--r-- 1.0 KiB View raw
3fee55faDrew DeVault Add buildsrht-initdb 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
image: netbsd/latest
packages:
  - qemu
  - qemu-utils
  - rsync
sources:
  - https://git.sr.ht/~sircmpwn/builds.sr.ht
environment:
  arch: amd64
  release: "8.x"
  slaves:
    - deploy@yui.runners.sr.ht
    - deploy@azusa.runners.sr.ht
secrets:
  - fa00a8d3-7b63-42d5-8060-3bb31c3e3018
triggers:
  - action: email
    condition: failure
    to: Drew DeVault <sir@cmpwn.com>
tasks:
  - genimg: |
      cd builds.sr.ht/images/netbsd/$release
      sudo ./genimg $arch
  - sanity-check: |
      cd builds.sr.ht
      MEMORY=1024 ./images/control netbsd/$release sanity-check
#  - deploy: |
#      cd builds.sr.ht/images/freebsd/$release
#      sshopts="-o StrictHostKeyChecking=no"
#      for server in "${slaves[@]}"
#      do
#        rsync \
#          --rsh="ssh $sshopts" -rzP $arch/root.img.qcow2 \
#          ${server}:/var/lib/images/netbsd/$release/$arch/new_root.img.qcow2
#        ssh $sshopts $server \
#          mv /var/lib/images/netbsd/$release/$arch/new_root.img.qcow2 \
#             /var/lib/images/netbsd/$release/$arch/root.img.qcow2
#      done