From e95e641bbf9da5d790e0c4c5c9618754d3dc7d02 Mon Sep 17 00:00:00 2001 From: toby Date: Wed, 26 Sep 2018 21:59:09 +0000 Subject: [PATCH] temp local script to build till dron can handle the size --- drone-not-working.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 drone-not-working.sh diff --git a/drone-not-working.sh b/drone-not-working.sh new file mode 100644 index 0000000..d610370 --- /dev/null +++ b/drone-not-working.sh @@ -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 $(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