2018-08-15 11:32:27 -05:00
|
|
|
pipeline:
|
|
|
|
build:
|
2018-10-25 17:36:25 -05:00
|
|
|
image: registry.i.wit.com/toby/packager:1.3
|
2018-12-01 12:14:46 -06:00
|
|
|
environment:
|
|
|
|
- SHELL=/bin/bash
|
2019-03-29 13:07:01 -05:00
|
|
|
- DEBNAME=wit-network-config
|
2018-08-15 11:32:27 -05:00
|
|
|
commands:
|
2018-12-07 11:51:53 -06:00
|
|
|
- echo Building ${DRONE_BRANCH/master/experimental}
|
2019-03-29 13:10:33 -05:00
|
|
|
- apt-get update
|
2018-09-20 12:48:59 -05:00
|
|
|
- apt-get install -y sed strongswan frr isc-dhcp-client systemd
|
2019-03-29 13:10:33 -05:00
|
|
|
- echo "$DEBNAME (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
|
2019-03-29 13:07:01 -05:00
|
|
|
- ls -lha ../$DEBNAME_*_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
|
2019-03-29 13:07:01 -05:00
|
|
|
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no ../$DEBNAME_*_all.deb debcore@mirrors.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental}
|
2018-08-24 15:10:12 -05:00
|
|
|
secrets: [ ssh_key ]
|
2019-03-29 13:07:01 -05:00
|
|
|
branches:
|
2018-12-07 11:51:53 -06:00
|
|
|
- master
|
2018-12-01 12:14:46 -06:00
|
|
|
- staging
|
2018-12-07 11:51:53 -06:00
|
|
|
- main
|