-
Notifications
You must be signed in to change notification settings - Fork 4
/
s3_website.yml
30 lines (27 loc) · 1022 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['S3_ACCESS_KEY_ID'] %>
s3_secret: <%= ENV['S3_SECRET_KEY'] %>
s3_bucket: models-resources
s3_key_prefix: teaching-teamwork
s3_endpoint: us-east-1
gzip: true
cloudfront_distribution_id: E27WSNJL0D49A8
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: ^teaching-teamwork/(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: ^(?!teaching-teamwork/<%= Regexp.escape(ENV['DEPLOY_DIR']) %>/)
<% end %>
max_age:
"teaching-teamwork/*": 600 # 10 minutes
"teaching-teamwork/version/*": 31536000 # 1 year
"teaching-teamwork/branch/*": 0
cloudfront_distribution_config:
aliases:
quantity: 1
items:
CNAME0: teaching-teamwork.concord.org