2018-08-15 11:32:27 -05:00
|
|
|
pipeline:
|
|
|
|
build:
|
2018-08-16 14:34:58 -05:00
|
|
|
image: registry.v1.cloud.wit.com/toby/packager:1.2
|
2018-08-15 11:32:27 -05:00
|
|
|
commands:
|
2018-08-24 13:47:13 -05:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y sed strongswan frr isc-dhcp-client systemd
|
|
|
|
- apt-get clean
|
2018-08-15 11:32:27 -05:00
|
|
|
- dpkg-buildpackage --no-sign
|
2018-08-24 13:47:13 -05:00
|
|
|
- ls -lha ../wit-network-config_*_all.deb
|
|
|
|
- find / -name *.deb
|
2018-08-15 12:23:54 -05:00
|
|
|
upload:
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
host: cloud-api.v1.cloud.wit.com
|
2018-08-15 15:03:38 -05:00
|
|
|
username: root
|
2018-08-16 16:56:23 -05:00
|
|
|
secrets: [ ssh_key ]
|
2018-08-15 12:23:54 -05:00
|
|
|
port: 22022
|
|
|
|
target: /data/incoming
|
|
|
|
source: ../wit-network-config_*_all.deb
|
|
|
|
strip_components: 1
|