· 9 years ago · Dec 16, 2016, 04:44 PM
1
2name: Amazon S3
3tags: [ aws, amazon, s3 ]
4logo: amazon_s3.svg
5license: apache2
6author: bradyrdzewski
7image: plugins/s3
8
9description: |
10 The S3 plugin uploads files and build artifacts to your S3 bucket.
11
12example: |
13 pipeline:
14 s3:
15 image: plugins/s3
16 bucket: my-bucket-name
17 access_key: a50d28f4dd477bc184fbd10b376de753
18 secret_key: bc5785d3ece6a9cdefa42eb99b58986f9095ff1c
19 source: public/**/*
20 target: /target/location
21
22params:
23 endpoint: custom endpoint URL
24 access_key: amazon key
25 secret_key: amazon secret key
26 bucket: bucket name
27 region: bucket region
28 acl: access to files that are uploaded
29 source: source location of the files, using a glob matching pattern
30 target: target location of files in the bucket
31 encryption: if provided, use server-side encryption
32 strip_prefix: strip the prefix from source path
33 exclude: glob exclusion patterns
34 path_style: whether path style URLs should be used (true for minio)
35
36secrets:
37 AWS_ACCESS_KEY_ID: amazon key
38 AWS_SECRET_ACCESS_KEY: amazon secret key
39
40examples:
41 - desc: Override the default acl and region:
42 code: >
43 pipeline:
44 s3:
45 image: plugins/s3
46 bucket: my-bucket-name
47 + acl: public-read
48 + region: us-east-1
49 source: public/**/*
50 target: /target/location
51
52 - desc: Override the default acl and region:
53 code: >
54 pipeline:
55 s3:
56 image: plugins/s3
57 bucket: my-bucket-name
58 source: public/**/*
59 target: /target/location
60 + strip_prefix: public/
61
62 - desc: Override the default acl and region:
63 code: >
64 pipeline:
65 s3:
66 image: plugins/s3
67 bucket: my-bucket-name
68 source: public/**/*
69 target: /target/location
70 + exclude:
71 + - **/*.xml