Merge pull request #9672 from srikiz/DO-upload-to-spaces

[Digital Ocean] Upload binaries to DO Spaces
This commit is contained in:
Kubernetes Prow Robot 2020-08-06 14:05:51 -07:00 committed by GitHub
commit b6f4307231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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