Skip to main content

S3 Target

Uploads your repositories to an Amazon S3 or S3-compatible bucket.

Environment variables

NameDescription
AWS_ACCESS_KEY_IDThe access key for your AWS account or S3-compatible service.
AWS_SECRET_ACCESS_KEYThe secret key for your AWS account or S3-compatible service.
AWS_SESSION_TOKENThe session key for your AWS account or S3-compatible service. This is only needed when you are using temporary credentials.

Configuration

NameDescription
typeMust be s3.
bucketStorage bucket name.
endpointThe endpoint of your S3-compatible server. Not required if using Amazon S3.
regionThe bucket region.
disable-sslDisable SSL.
folderThe folder to store your artifacts in. Defaults to the bucket root.
urlThe public URL of your bucket. Defaults to https://storage.googleapis.com/<bucket>.

Examples

Amazon S3

target:
type: s3
bucket: my-bucket
region: us-east-1
folder: my-folder
url: https://download.example.com

Cloudflare R2

target:
type: s3
bucket: my-bucket
region: auto
folder: my-folder
endpoint: https://<accountId>.r2.cloudflarestorage.com
url: https://download.example.com