wit-network-config/.drone.yml

22 lines
1.1 KiB
YAML
Raw Permalink Normal View History

pipeline:
build:
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
commands:
- echo Building ${DRONE_BRANCH/master/experimental}
- sudo apt-get update
- sudo apt-get install -y sed strongswan frr isc-dhcp-client systemd
2019-04-05 13:09:20 -05:00
- echo "${DEBNAME} (2.0.$(TZ=UTC date +%Y.%m.%d.%H.%M)) unstable; urgency=low\n\n$(git log --format=" * %s")\n\n -- wit <netops@wit.com> $(TZ=UTC date -R)" >debian/changelog
- dpkg-buildpackage --no-sign
- 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
- 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:
- master
2018-12-01 12:14:46 -06:00
- staging
- main