2021-02-12 13:30:44 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-02-03 10:48:55 +00:00
|
|
|
rm -f raspi_3.img
|
|
|
|
rm -f raspi_3.log
|
2021-02-12 13:30:44 +00:00
|
|
|
make raspi_3.img
|
|
|
|
|
|
|
|
# copy to releases
|
2021-02-15 09:40:22 +00:00
|
|
|
TODAY=$(date +"%Y%m%d")
|
2021-02-12 13:30:44 +00:00
|
|
|
RELEASE_DIR=/var/www/releases.peachcloud.org/html/peach-imgs/$TODAY
|
2021-02-15 09:40:22 +00:00
|
|
|
echo "++ successful image build, copying output to ${RELEASE_DIR}"
|
2021-02-12 13:30:44 +00:00
|
|
|
mkdir -p $RELEASE_DIR
|
|
|
|
cp raspi_3.img $RELEASE_DIR/${TODAY}_peach_raspi3.img
|
2021-03-11 12:52:27 +00:00
|
|
|
cp peach-img-manifest.log $RELEASE_DIR/${TODAY}_img_manifest.log
|
2021-02-12 13:30:44 +00:00
|
|
|
cp raspi_3.log $RELEASE_DIR/${TODAY}_peach_raspi3.log
|