Skip to content

Instantly share code, notes, and snippets.

@bellkev
Created September 19, 2015 23:52
Show Gist options
  • Save bellkev/1a54bf53950ec7db104c to your computer and use it in GitHub Desktop.
Save bellkev/1a54bf53950ec7db104c to your computer and use it in GitHub Desktop.
deploy to EB
deployment:
elasticbeanstalk:
branch: master
commands:
- zip -r app-$CIRCLE_SHA1 .
- aws s3 cp app-$CIRCLE_SHA1.zip s3://$EB_BUCKET/app-$CIRCLE_SHA1.zip
- aws elasticbeanstalk create-application-version --application-name hello --version-label $CIRCLE_SHA1 --source-bundle S3Bucket=$EB_BUCKET,S3Key=app-$CIRCLE_SHA1.zip
- aws elasticbeanstalk update-environment --environment-name my-env --version-label $CIRCLE_SHA1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment