mirror of https://github.com/mitchell/mjfs.us.git
Setup travis config and credential script
This commit is contained in:
parent
f38e67281b
commit
89076b4ccf
|
@ -0,0 +1,16 @@
|
||||||
|
language: node_js
|
||||||
|
|
||||||
|
node_js:
|
||||||
|
- "10"
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- "sh ./travis_credential_setup.sh"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- "npm install"
|
||||||
|
- "pip install awscli --user"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- "npm run build"
|
||||||
|
- "aws s3 sync ./build/ s3://mjfsus --acl public-read"
|
||||||
|
- "aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths /*"
|
|
@ -0,0 +1,7 @@
|
||||||
|
mkdir -p ~/.aws
|
||||||
|
|
||||||
|
cat > ~/.aws/credentials << EOL
|
||||||
|
[default]
|
||||||
|
aws_access_key_id = ${AWS_ACCESS_KEY_ID}
|
||||||
|
aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY}
|
||||||
|
EOL
|
Loading…
Reference in New Issue