16 lines
644 B
Bash
Executable File
16 lines
644 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuxo pipefail
|
|
|
|
export TMP_DIR=$(mktemp -d)
|
|
cp -r debian-$ARCH $TMP_DIR/debian
|
|
cp -r files $TMP_DIR
|
|
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
|
|
cd $TMP_DIR
|
|
sudo dpkg-buildpackage --no-sign
|
|
ls -lha ../wit-pxeboot-${ARCH}_*_all.deb
|
|
scp -i ~/.ssh/packager -o StrictHostKeyChecking=no -P 22022 ../wit-pxeboot-${ARCH}_*_all.deb root@cloud-api.v2.stack.wit.com:/data/incoming/main
|
|
sudo rm -fr ../wit-pxeboot-${ARCH}*
|
|
cd -
|
|
sudo rm -fr $TMP_DIR
|