Skip to content

Instantly share code, notes, and snippets.

@deptno
Created March 13, 2017 17:01
Show Gist options
  • Save deptno/3ab922dff90f08461b2f366b77e24a06 to your computer and use it in GitHub Desktop.
Save deptno/3ab922dff90f08461b2f366b77e24a06 to your computer and use it in GitHub Desktop.
travis elastic beanstalk, node, yarn
language: node_js
node_js:
- 'node'
cache:
yarn: true
directories:
- node_modules
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn
- yarn compile
notifications:
email: false
slack:
before_deploy: zip -q -r [FILE_NAME] .
deploy:
- provider: elasticbeanstalk
access_key_id:
secret_access_key:
skip_cleanup: true
region: ap-northeast-2
zip_file: ./[FILE_NAME]
bucket_name:
app:
env:
on:
tags: true
all_branches: true
condition: $TRAVIS_TAG == dev-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment