fix: fixing S3 buckets

This commit is contained in:
D. Moonfire 2022-10-12 21:53:42 -05:00
parent d32c8a428e
commit 0881471bf0

View file

@ -29,7 +29,11 @@ then
tar -cjf i-will-hurt-you-only-once.tar.bz2 dmoonfire* tar -cjf i-will-hurt-you-only-once.tar.bz2 dmoonfire*
log "uploading tarball to bucket" log "uploading tarball to bucket"
s3cmd --access_key=$S3_ACCESS_KEY_ID --access_token=$S3_SECRET_ACCESS_KEY --host=$S3_ENDPOINT --host-bucket=$S3_ENDPOINT -P put i-will-hurt-you-only-once.tar.bz2 s3://$AWS_BUCKET || exit 1 export AWS_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY
export AWS_ENDPOINT=$S3_ENDPOINT
export AWS_BUCKET=$S3_BUCKET
s3cmd --access_key=$S3_ACCESS_KEY_ID --access_token=$S3_SECRET_ACCESS_KEY --host=$S3_ENDPOINT --host-bucket=$S3_ENDPOINT -P put i-will-hurt-you-only-once.tar.bz2 s3://$S3_BUCKET || exit 1
else else
log "no files to upload" log "no files to upload"
fi fi