Fix deploy script

This commit is contained in:
Filippo Squillace 2021-12-20 21:19:47 +00:00 committed by Filippo Squillace
parent 5e97524338
commit 4a1c11d4ed

View file

@ -42,7 +42,7 @@ then
aws s3 cp s3://junest-repo/junest/$img_name s3://junest-repo/junest/${img_name}.${DATE}
# Cleanup old images
aws s3 ls s3://junest-repo/junest/junest-${ARCH}.tar.gz. | awk '{print $4}' | head -n -${MAX_OLD_IMAGES} | xargs -I {} s3 rm "s3://junest-repo/junest/{}"
aws s3 ls s3://junest-repo/junest/junest-${ARCH}.tar.gz. | awk '{print $4}' | head -n -${MAX_OLD_IMAGES} | xargs -I {} aws s3 rm "s3://junest-repo/junest/{}"
# Test the newly deployed image can be downloaded correctly
junest setup