2018-09-24 08:54:24 -05:00
|
|
|
pipeline:
|
|
|
|
build:
|
2018-10-25 17:16:09 -05:00
|
|
|
image: registry.i.wit.com/toby/packager:1.3
|
2018-09-24 08:54:24 -05:00
|
|
|
commands:
|
2019-01-07 13:22:40 -06:00
|
|
|
- export ARCH=amd64
|
2019-02-08 15:32:40 -06:00
|
|
|
- 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
|
2018-09-24 08:54:24 -05:00
|
|
|
- ./create_pxeinitrd.sh
|
|
|
|
- dpkg-buildpackage --no-sign
|
2019-02-08 15:32:40 -06:00
|
|
|
- ls -lha ../$DEBNAME_*_all.deb
|
2018-09-24 08:54:24 -05:00
|
|
|
- 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}
|
2018-09-24 08:54:24 -05:00
|
|
|
secrets: [ ssh_key ]
|
2018-12-20 03:58:56 -06:00
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- staging
|
|
|
|
- main
|