2020-06-28 15:41:22 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build live-cd Image
|
|
|
|
image: debian:buster
|
|
|
|
privileged: true
|
|
|
|
commands:
|
|
|
|
- apt update
|
|
|
|
- apt install -y live-build binutils
|
|
|
|
- sed -i '1161s%umount%#umount%' /usr/share/debootstrap/functions
|
|
|
|
- lb clean --purge
|
|
|
|
- lb config
|
|
|
|
- lb build
|
2020-07-12 09:49:57 +00:00
|
|
|
- name: Copy to brunhilde
|
|
|
|
image: appleboy/drone-scp
|
2020-06-28 15:41:22 +00:00
|
|
|
settings:
|
2020-07-12 09:49:57 +00:00
|
|
|
host: brunhilde.mgmt.intern.lab.or.it
|
|
|
|
user: root
|
|
|
|
key:
|
|
|
|
from_secret: brunhilde_ssh_key
|
|
|
|
target: /var/lib/vz/template/iso/
|
|
|
|
source:
|
2020-06-28 22:04:33 +00:00
|
|
|
- live-image*.iso
|
2020-06-28 15:41:22 +00:00
|
|
|
when:
|
2020-06-28 21:50:09 +00:00
|
|
|
event: tag
|
2020-06-28 15:41:22 +00:00
|
|
|
|
|
|
|
|