pxeboot/.drone.yml

20 lines
960 B
YAML
Raw Permalink Normal View History

pipeline:
build:
2018-10-25 17:16:09 -05:00
image: registry.i.wit.com/toby/packager:1.3
commands:
2019-01-07 13:22:40 -06:00
- export ARCH=amd64
- export DEBNAME=wit-pxeboot-$ARCH
- ln -s debian-$ARCH debian
- echo "$DEBNAME (1.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
- ./create_pxeinitrd.sh
- dpkg-buildpackage --no-sign
- ls -lha ../$DEBNAME_*_all.deb
- echo "$SSH_KEY" >/tmp/id_rsa
- chmod 600 /tmp/id_rsa
2019-03-29 13:08:38 -05:00
- scp -i /tmp/id_rsa -o StrictHostKeyChecking=no ../$DEBNAME_*_all.deb debcore@mirrors.wit.com:/data/incoming/${DRONE_BRANCH/master/experimental}
secrets: [ ssh_key ]
branches:
- master
- staging
- main