Skip to content

Commit

Permalink
Add s3 upload support in .goreleaser.yml via blob configuration
Browse files Browse the repository at this point in the history
- used blob configuration instead of deprecated s3 one. this requires
adding a AWS_DEFAULT_REGION env var to the drone step (toghether with
the IAM credentials), because this
property is missing in the blob config
  • Loading branch information
Roberto Sora committed Jul 30, 2019
1 parent 3140365 commit cf34558
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .drone.yml
Expand Up @@ -61,6 +61,11 @@ steps:
environment:
GITHUB_TOKEN:
from_secret: github_token
AWS_ACCESS_KEY_ID:
from_secret: downloads_drone_io_aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: downloads_drone_io_aws_secret_access_key
AWS_DEFAULT_REGION: 'us-east-1'
commands:
- goreleaser

Expand Down
8 changes: 8 additions & 0 deletions .goreleaser.yml
Expand Up @@ -92,3 +92,11 @@ archives:
files:
- README.md
- LICENSE.txt

blob:
-
provider: s3
bucket: arduino-downloads-prod-beagle
ids:
- arduino_cli
folder: "{{ .ProjectName }}"

0 comments on commit cf34558

Please sign in to comment.