pxeboot/drone-not-working.sh

14 lines
496 B
Bash
Raw Normal View History

#!/bin/bash
set -Eeuxo pipefail
export TMP_DIR=$(mktemp -d)
cp -r debian $TMP_DIR
cp -r files $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