-
Notifications
You must be signed in to change notification settings - Fork 2
/
s3_website.yml
31 lines (28 loc) · 1.07 KB
/
s3_website.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
s3_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
s3_secret: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
s3_bucket: models-resources
s3_key_prefix: connected-bio-spaces
s3_endpoint: us-east-1
gzip: true
cloudfront_distribution_id: E2WXV7MP51YFIF
cloudfront_invalidate_root: true
cloudfront_wildcard_invalidation: true
<% if ENV['TRAVIS_BRANCH'] == 'production' %>
# in this case we are going to deploy this branch to the top level of the domain
# so we need to ignore the version and branch folders
ignore_on_server: ^connected-bio-spaces/(version/|branch/)
<% else %>
# in this case we are going to deploy this code to a subfolder of either the branch
# or version folder. So ignore everything except this folder.
# S3_DEPLOY_DIR is set by s3_deploy.sh
ignore_on_server: ^(?!connected-bio-spaces/<%= Regexp.escape(ENV['S3_DEPLOY_DIR']) %>/)
<% end %>
max_age:
"connected-bio-spaces/*": 600 # 10 minutes
"connected-bio-spaces/version/*": 31536000 # 1 year
"connected-bio-spaces/branch/*": 0
cloudfront_distribution_config:
aliases:
quantity: 1
items:
- connected-bio-spaces.concord.org