Commit a74e93a9 authored by Guido Gunther's avatar Guido Gunther

Publish images if present

parent a8801b82
......@@ -17,3 +17,6 @@ clean:
check:
bash -n lava.sh root.sh
publish: $(COMPRESSED)
build/publish.sh
......@@ -7,17 +7,17 @@
set -e
if [ -z "$1" ];then
echo "Please specify kernel deb to upload"
exit 1
else
DEB="$1"
fi
DATE=$(date --iso)
TARGET="librem5/binaries/unstable/$DATE"
ssh -p 3376 librem5@storage.puri.sm "mkdir -p ${TARGET}"
scp -P 3376 "${DEB}" "librem5@storage.puri.sm:${TARGET}/"
ssh -p 3376 librem5@storage.puri.sm "ln -nsf ${DATE} ${TARGET}/../latest"
# Publish all files needed to build the image
scp -P 3376 files/* "librem5@storage.puri.sm:${TARGET}/"
# Publish built images if present
if ls *.img.xz >& /dev/null; then
scp -P 3376 *.img.xz "librem5@storage.puri.sm:${TARGET}/"
fi
ssh -p 3376 librem5@storage.puri.sm "ln -nsf ${DATE} ${TARGET}/../latest"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment