mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-16 16:19:48 -05:00
Use the Travis build artifact for deployment
This commit is contained in:
parent
d98dd56d7e
commit
6bc767dc15
2 changed files with 8 additions and 1 deletions
|
@ -14,12 +14,18 @@ env:
|
|||
- EB_REGION=us-east-1
|
||||
- EB_APP=scratch-www
|
||||
- EB_AWS_BUCKET_NAME=elasticbeanstalk-us-east-1-307680192167
|
||||
- SKIP_CLEANUP=true
|
||||
- BUILD_ARCHIVE=$TRAVIS_BUILD_ID.zip
|
||||
after_success:
|
||||
- zip $BUILD_ARCHIVE .
|
||||
deploy:
|
||||
- provider: elasticbeanstalk
|
||||
access_key_id: $EB_AWS_ACCESS_KEY_ID
|
||||
secret_access_key: $EB_AWS_SECRET_ACCESS_KEY
|
||||
bucket_name: $EB_AWS_BUCKET_NAME
|
||||
bucket_path: $EB_APP
|
||||
zip_file: $BUILD_ARCHIVE
|
||||
skip_cleanup: $SKIP_CLEANUP
|
||||
region: $EB_REGION
|
||||
app: $EB_APP
|
||||
env: scratch-www-staging
|
||||
|
@ -31,6 +37,8 @@ deploy:
|
|||
secret_access_key: $EB_AWS_SECRET_ACCESS_KEY
|
||||
bucket_name: $EB_AWS_BUCKET_NAME
|
||||
bucket_path: $EB_APP
|
||||
zip_file: $BUILD_ARCHIVE
|
||||
skip_cleanup: $SKIP_CLEANUP
|
||||
region: $EB_REGION
|
||||
app: $EB_APP
|
||||
env: scratch-www-production
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"version": "1.0.0",
|
||||
"description": "Standalone WWW client for Scratch",
|
||||
"scripts": {
|
||||
"prestart": "make build",
|
||||
"start": "make start",
|
||||
"stop": "make stop",
|
||||
"test": "make test",
|
||||
|
|
Loading…
Reference in a new issue