-
Notifications
You must be signed in to change notification settings - Fork 41
/
s3_website.yml
30 lines (27 loc) · 968 Bytes
/
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
s3_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
s3_secret: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
s3_bucket: models-resources
s3_key_prefix: codap-dev
s3_endpoint: us-east-1
gzip: true
cloudfront_distribution_id: E6OL76123FRO6
cloudfront_invalidate_root: true
cloudfront_wildcard_invalidation: true
<% if ENV['TRAVIS_BRANCH'] == 'master' %>
# 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: ^codap-dev/(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.
ignore_on_server: ^(?!codap-dev/<%= Regexp.escape(ENV['DEPLOY_DIR']) %>/)
<% end %>
max_age:
"codap-dev/*": 600 # 10 minutes
"codap-dev/version/*": 31536000 # 1 year
"codap-dev/branch/*": 0
cloudfront_distribution_config:
aliases:
quantity: 1
items:
- codap-dev.concord.org