2018-09-26 16:59:09 -05:00
|
|
|
#!/bin/bash
|
|
|
|
set -Eeuxo pipefail
|
|
|
|
|
2018-09-27 07:47:26 -05:00
|
|
|
export TMP_DIR=$(mktemp -d)
|
2019-01-09 13:04:09 -06:00
|
|
|
cp -r debian-$ARCH $TMP_DIR/debian
|
2018-09-27 07:47:26 -05:00
|
|
|
cp -r files $TMP_DIR
|
2019-01-09 14:03:40 -06:00
|
|
|
echo -e "wit-pxeboot-$ARCH (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 ARCH=$ARCH TMP_DIR=$TMP_DIR ./create_pxeinitrd.sh
|
2018-09-26 16:59:09 -05:00
|
|
|
cd $TMP_DIR
|
2018-09-27 08:48:21 -05:00
|
|
|
sudo dpkg-buildpackage --no-sign
|
2019-01-09 14:03:40 -06:00
|
|
|
ls -lha ../wit-pxeboot-${ARCH}_*_all.deb
|
2019-01-10 16:45:11 -06:00
|
|
|
scp -i ~/.ssh/packager -o StrictHostKeyChecking=no -P 22022 ../wit-pxeboot-${ARCH}_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/main
|
2019-02-25 13:15:00 -06:00
|
|
|
sudo rm -fr ../wit-pxeboot-${ARCH}*
|
2019-01-10 05:47:36 -06:00
|
|
|
cd -
|
|
|
|
sudo rm -fr $TMP_DIR
|