-
-
Save philihp/34e2d82b90507bbf2719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
machine: | |
environment: | |
JAVA_TOOL_OPTIONS: '-Dfile.encoding=UTF8 -Duser.timezone=UTC' | |
_JAVA_OPTIONS: '-Xms512m -Xmx1024m -Xss2m' | |
java: | |
version: oraclejdk8 | |
python: | |
version: 2.7.6 | |
services: | |
- docker | |
dependencies: | |
cache_directories: | |
- ~/.sbt | |
pre: | |
- pip install awscli | |
override: | |
- "./activator compile": | |
timeout: 300 | |
test: | |
override: | |
- "./activator test docker:stage": | |
timeout: 900 | |
post: | |
- cp -R target/test-reports $CI_REPORTS | |
- cd target/docker; zip -r ../homebay-docker-$CIRCLE_SHA1.zip .; cd ../../ | |
- cp target/homebay-docker-$CIRCLE_SHA1.zip $CIRCLE_ARTIFACTS | |
deployment: | |
prod: | |
branch: master | |
commands: | |
- aws s3 cp $CIRCLE_ARTIFACTS/homebay-docker-$CIRCLE_SHA1.zip s3://homebay-deployments/homebay-docker-$CIRCLE_SHA1.zip | |
- aws elasticbeanstalk create-application-version --application-name HomeBay --auto-create-application --version-label $CIRCLE_SHA1 --source-bundle S3Bucket=homebay-deployments,S3Key=homebay-docker-$CIRCLE_SHA1.zip --region us-east-1 | |
- aws elasticbeanstalk update-environment --environment-name homebay-web --version-label $CIRCLE_SHA1 --region us-east-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment