aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoransible_admin <capsul@cyberia.club>2020-10-28 06:35:22 +0000
committeransible_admin <capsul@cyberia.club>2020-10-28 06:35:22 +0000
commit04faa6c48e3649204b55259dff4de7c2e99de206 (patch)
treed739daf32600ee78a165cc653c8d3c8213cfac0e
parentf6ff0031c9abcf9f775286e1804b4d3eacbdbe4e (diff)
downloadops-handbook-04faa6c48e3649204b55259dff4de7c2e99de206.tar.gz
ops-handbook-04faa6c48e3649204b55259dff4de7c2e99de206.tar.bz2
Add ubuntu job
-rw-r--r--builds/monthly/capsul-ubuntu-20.04.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/builds/monthly/capsul-ubuntu-20.04.yaml b/builds/monthly/capsul-ubuntu-20.04.yaml
new file mode 100644
index 0000000..fe0c91b
--- /dev/null
+++ b/builds/monthly/capsul-ubuntu-20.04.yaml
@@ -0,0 +1,29 @@
+# this builds the capsul ubuntu 10 template img
+
+environment:
+ version: 20.04
+ slaves:
+ - deploy@baikal.cyberia.club
+image: alpine/edge
+packages:
+- rsync
+secrets:
+# deploy@baikal.cyberia.club
+- aac6b8d1-65c1-4d7f-862f-094716b800e3
+sources:
+- https://git.cyberia.club/services/capsul-images
+tasks:
+- genimg: 'cd capsul-images/ubuntu
+
+ sudo ./build $version'
+- deploy: "cd capsul-images/ubuntu\necho \"StrictHostKeyChecking=no\"\
+ \ >> ~/.ssh/config\nfor server in \"${slaves[@]}\"\ndo\n ssh $server mkdir -p\
+ \ /tank/img/ubuntu/$version\n rsync -rzP $version/root.img.qcow2 \\\n\
+ \ ${server}:/tank/img/ubuntu/$version/new_root.img.qcow2\n ssh\
+ \ $server \\\n mv /tank/img/ubuntu/$version/new_root.img.qcow2\
+ \ \\\n /tank/img/ubuntu/$version/root.img.qcow2\ndone"
+triggers:
+- action: email
+ condition: failure
+ to: ops <ops@cyberia.club>
+