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-24 17:45:46 -05:00
|
|
|
- echo "wit-network-config (2.0.$(date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit <netops@wit.com> $(date -R)" >debian/changelog
|
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
|
2018-08-24 15:40:33 -05:00
|
|
|
- echo "$SSH_KEY" >/tmp/id_rsa
|
2018-08-24 14:07:30 -05:00
|
|
|
- chmod 600 /tmp/id_rsa
|
2018-08-24 14:13:06 -05:00
|
|
|
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no -P 22022 ../wit-network-config_*_all.deb root@cloud-api.v1.cloud.wit.com:/data/incoming
|
2018-08-24 15:10:12 -05:00
|
|
|
secrets: [ ssh_key ]
|