Upload binaries to DO Spaces

This commit is contained in:
Srikanth 2020-08-07 00:09:30 +05:30
parent 197b6a68e9
commit 42b1daf5a6
1 changed files with 6 additions and 0 deletions

View File

@ -35,5 +35,11 @@ if [[ "${DEST:0:6}" == "oss://" ]]; then
exit 0
fi
if [[ "${DEST:0:5}" == "do://" ]]; then
DO_BUCKET=`echo "${DEST}" | cut -c 6-`
s3cmd put "*" ${SRC}/ s3://$DO_BUCKET --recursive ${PUBLIC:+--acl-public}
exit 0
fi
echo "Unsupported destination - supports s3://, gs:// and oss:// urls: ${DEST}"
exit 1