travis-ci / artifacts

Travis CI Artifacts Uploader
MIT License
87 stars 24 forks source link

public permission to s3 bucket #83

Open ngtuna opened 6 years ago

ngtuna commented 6 years ago

I want to upload artifact(s) to my s3 bucket with public permission, however it returns error:

$ export ARTIFACTS_PERMISSIONS=public
$ export ARTIFACTS_CACHE_CONTROL=public
$ ./artifacts u
INFO[0000] uploading with settings                       bucket=xxx cache_control=public permissions=public
INFO[0000] uploading: /home/tuna/temp-linux-amd64 (size: 5.3KB)  download_url=https://s3.amazonaws.com/xxx/temp-linux-amd64
INFO[0003] uploading: /home/tuna/temp-linux-amd64 (size: 5.3KB)  download_url=https://s3.amazonaws.com/xxx/temp-linux-amd64
INFO[0006] uploading: /home/tuna/temp-linux-amd64 (size: 5.3KB)  download_url=https://s3.amazonaws.com/xxx/temp-linux-amd64
ERRO[0006] failed to upload: /home/tuna/temp-linux-amd64  err=400 Bad Request
arrodriguez commented 6 years ago

Hi @ngtuna you should use: