-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (35 loc) · 1.45 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
language: node_js
dist: trusty
sudo: false
git:
depth: 10
lfs_skip_smudge: true
cache:
pip: true
yarn: true
directories:
- node_modules
install:
- yarn
- pip install --user awscli
script:
- yarn build
deploy:
provider: s3
access_key_id: "$AWS_ACCESS_KEY"
secret_access_key: "$AWS_SECRET_KEY"
bucket: "swarmpit.io"
skip_cleanup: true
region: eu-central-1
local_dir: "s3/swarmpit.io/"
on:
branch: master
after_deploy:
- export AWS_ACCESS_KEY_ID=$AWS_CLOUDFRONT_ACCESS_KEY
- export AWS_SECRET_ACCESS_KEY=$AWS_CLOUDFRONT_SECRET_KEY
- export AWS_DEFAULT_REGION=$AWS_REGION
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id=$AWS_CLOUDFRONT_DISTRIBUTION_ID --paths=/*
notifications:
slack:
secure: QWPoByAK/ondphDKM1/9VfKtz7yvuQYCcZf+HlsjAj1MtQ8dFZJ5EcuUb9hcd/aIxfhW0aHwauDV+ZEjyQNSjWOIWN1vAgUVlyMrInPOPHOlyPY03dHfu5hmWzLbQ5oJ3rN4BWEq2lnLRPRHsqMws5ySgGtcx1jp7705MbH1YGNLZHfvNfzEb7bu90NRTxCfCrvq7p+5v04u/MDbouz7bOBPBu8osKa/x4wTDmq93hx/uNuaPObtHcxznWdexcOmm/tt2nNayiI5/w8q0t5vTnpYPfHp6a7PSXj7qvaNlhfde2GCAZIpWGyUKAOlisPpGF0tZMU9npgSMDBnXapPbAysDEz2g9ZM0KYNWjuvRcc0NNVT/x8rEzq6r2niT9iiNvjDAEru6x9j6ZyMoR4/BVf+ezx3oogw2Pwzkwem8nFtt+A6aGUK2V+zH68/JLqLTpcjF0WU4DgbEzwW9HuRcZ95A8K06mlJsStqvPREc2HEB2RHzRpntwc2dN/RIeE+hMdO2E89rz8NqbdSEPKI+07pk46i5NuLzWiPrsA2csEpeGbIcyUoyHZCdxRIsZX5IheQq6e4PLJRaz+sPCY3xzkM9SwHkKyok5hywZ3SociB9/HykSSm244yyU0hj/B6zowkXJDH0WFjre37TX2K4KRl3KffjUjkDPcT+NMYX3M=