-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy path.travis.yml
44 lines (44 loc) · 1.18 KB
/
.travis.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
32
33
34
35
36
37
38
39
40
41
42
43
44
language: node_js
node_js:
- 17
install:
"npm install --legacy-peer-deps"
cache:
directories:
- node_modules
env:
global:
- FASTLY_ACTIVATE_CHANGES=true
- FASTLY_SERVICE_ID_NAME=FASTLY_SERVICE_ID_$TRAVIS_BRANCH
- FASTLY_SERVICE_ID=${!FASTLY_SERVICE_ID_NAME}
- S3_BUCKET_NAME_master=scratch-jr-production
- S3_BUCKET_NAME_develop=scratch-jr-stage
- S3_BUCKET_NAME_VAR=S3_BUCKET_NAME_$TRAVIS_BRANCH
- S3_BUCKET_NAME=${!S3_BUCKET_NAME_VAR}
deploy:
- provider: s3
on:
repo: LLK/scratchjr-website
branch:
- master
access_key_id: $AWS_ACCESS_KEY_ID_PRODUCTION
secret_access_key: $AWS_SECRET_ACCESS_KEY_PRODUCTION
bucket: $S3_BUCKET_NAME
skip_cleanup: true
acl: public_read
cache_control: "maxage=86400, s-maxage=31536000 no-transform"
local_dir: build
- provider: s3
on:
repo: LLK/scratchjr-website
branch:
- develop
access_key_id: $AWS_ACCESS_KEY_ID_STAGING
secret_access_key: $AWS_SECRET_ACCESS_KEY_STAGING
bucket: $S3_BUCKET_NAME
skip_cleanup: true
acl: public_read
cache_control: "maxage=86400, s-maxage=31536000 no-transform"
local_dir: build
after_deploy:
- make sync-fastly