This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
[WIP] Auto-deploy to NPM and S3 using Travis CI #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a follow-up to #30. As discussed in #30 (comment), we'd like to automate the deployments to NPM and S3.
This commit is a work-in-progress Travis CI configuration to achieve this.
TODO for NPM:use(split out into Auto-deploy to NPM using Travis CI #32)travis encrypt
to encrypt NPM'semail
andapi_key
fields (after getting a token from https://npmjs.com, simply replace allsecure: TODO
bysecure: theoutputoftravisencrypt
)TODO for S3:
access_key_id
andsecret_access_key
credentials (might have to ask security first though)deploy.sh
:--profile code.cdn.mozilla.net
s3 cp
--acl public-read
--cache-control max-age=86400
--content-type application/json
devices.json
s3://code-origin-cdn-mozilla-net/devices/devices.json