temp local script to build till dron can handle the size

This commit is contained in:
toby 2018-09-26 21:59:09 +00:00
parent 48e440c20d
commit e95e641bbf
1 changed files with 12 additions and 0 deletions

12
drone-not-working.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -Eeuxo pipefail
TMP_DIR=$(mktemp -d)
cp -r debian $TMP_DIR
echo -e "wit-pxeboot (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)" >$TMP_DIR/debian/changelog
sudo ./create_pxeinitrd.sh
cd $TMP_DIR
dpkg-buildpackage --no-sign
scp -i ~/.ssh/pacakger -o StrictHostKeyChecking=no -P 22022 ../wit-pxeboot_*_all.deb root@cloud-api.v1.cloud.wit.com:/data/incoming
cd -
rm -r $TMP_DIR