some bug-fixes on local droneless deploy script and moving all to a single folder
This commit is contained in:
parent
2fb3031783
commit
0855dd9cc7
|
@ -1,5 +1 @@
|
||||||
files/vmlinuz /srv/tftp/wit-pxeboot/
|
files/* /srv/tftp/wit-pxeboot/
|
||||||
files/initramfs.gz /srv/tftp/wit-pxeboot/
|
|
||||||
files/debcore /srv/tftp/wit-pxeconfig/
|
|
||||||
files/install /srv/tftp/wit-pxeconfig/
|
|
||||||
files/localboot /srv/tftp/wit-pxeconfig/
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ export TMP_DIR=$(mktemp -d)
|
||||||
cp -r debian $TMP_DIR
|
cp -r debian $TMP_DIR
|
||||||
cp -r files $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
|
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
|
sudo TMP_DIR=$TMP_DIR ./create_pxeinitrd.sh
|
||||||
cd $TMP_DIR
|
cd $TMP_DIR
|
||||||
dpkg-buildpackage --no-sign
|
sudo 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
|
scp -i ~/.ssh/packager -o StrictHostKeyChecking=no -P 22022 ../wit-pxeboot_*_all.deb root@cloud-api.v1.cloud.wit.com:/data/incoming
|
||||||
cd -
|
cd -
|
||||||
rm -r $TMP_DIR
|
rm -r $TMP_DIR
|
||||||
|
|
Loading…
Reference in New Issue