Skip to content

Instantly share code, notes, and snippets.

@vano468
Last active May 24, 2016 11:18
Show Gist options
  • Save vano468/ed5f2406fb70bfe0bbf6 to your computer and use it in GitHub Desktop.
Save vano468/ed5f2406fb70bfe0bbf6 to your computer and use it in GitHub Desktop.
Wercker EB deploy
deploy:
steps:
- script:
name: create necessary folders
code: |-
mkdir -p $HOME/.aws
mkdir -p $WERCKER_SOURCE_DIR/.elasticbeanstalk
- create-file:
name: setting up AWS credentials
filename: $HOME/.aws/credentials
hide-from-log: true
overwrite: true
content: |-
[default]
aws_access_key_id=$AWS_ACCESS_KEY_ID
aws_secret_access_key=$AWS_SECRET_ACCESS_KEY
- create-file:
name: setting up AWS config file
filename: $HOME/.aws/config
hide-from-log: true
overwrite: true
content: |-
[default]
output = text
region = $AWS_REGION
- create-file:
name: setting up EB config file
filename: $WERCKER_SOURCE_DIR/.elasticbeanstalk/config.yml
hide-from-log: true
overwrite: true
content: |-
branch-defaults:
$WERCKER_GIT_BRANCH:
environment: $EB_ENV
global:
application_name: $EB_APP
default_platform: null
default_region: $AWS_REGION
profile: default
sc: git
- script:
name: check EB status
code: eb status
- script:
name: deploy to EB
code: eb deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment