aboutsummaryrefslogtreecommitdiff
path: root/builds/daily/capsul-alpine-3.12.yaml
blob: 4f00157bf12e6b5eaac4229c9201c59668c9c1f2 (plain)
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
# this builds the capsul alpine 3.12 template

environment:
  version: 3.12
  slaves:
  - deploy@baikal.cyberia.club
image: alpine/edge
packages:
- e2fsprogs
- qemu-img
- qemu-system-x86_64
- rsync
secrets:
# deploy@baikal.cyberia.club
- aac6b8d1-65c1-4d7f-862f-094716b800e3
sources:
- https://git.cyberia.club/services/capsul-images
tasks:
- genimg: 'cd capsul-images/alpine

    sudo ./build $version'
- deploy: "cd capsul-images/alpine\necho \"StrictHostKeyChecking=no\"\
    \ >> ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n  ssh $server mkdir -p\
    \ /tank/img/alpine/$version\n  rsync -rzP $version/root.img.qcow2 \\\n\
    \    ${server}:/tank/img/alpine/$version/new_root.img.qcow2\n  ssh\
    \ $server \\\n    mv /tank/img/alpine/$version/new_root.img.qcow2\
    \ \\\n       /tank/img/alpine/$version/root.img.qcow2\ndone"
triggers:
- action: email
  condition: failure
  to: ops <ops@cyberia.club>