Skip to content

Instantly share code, notes, and snippets.

@tal-moshayov
Created June 9, 2015 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tal-moshayov/4e4402ffafcb982d0dc5 to your computer and use it in GitHub Desktop.
Save tal-moshayov/4e4402ffafcb982d0dc5 to your computer and use it in GitHub Desktop.
Error parsing your wercker.yml: yaml: line 44: mapping values are not allowed in this context
box:
id: siloco/rails-box
username: $DOCKERHUB_USR
password: $DOCKERHUB_PWD
tag: latest
build:
# services:
# - id: postgres
# env:
# POSTGRES_PASSWORD: postgres
# POSTGRES_USER: postgres
steps:
- script:
name: set db ENV variables
code: |
export RDS_HOSTNAME=$POSTGRES_PORT_5432_TCP_ADDR
export RDS_DB_NAME='asdf'
export RDS_USERNAME='asdf'
export RDS_PASSWORD='adsf'
# - bundle-install
# - script:
# name: Prepare Database (rake db:migrate)
# code: RAILS_ENV=test rake db:migrate DONT_LOAD_ACTIVE_ADMIN=1
# - script:
# name: Unit Testing (rspec)
# code: RAILS_ENV=test bundle exec rspec --fail-fast
- script:
code: touch /dummy
# archive successful build results
- internal/docker-push:
username: $DOCKERHUB_USR
password: $DOCKERHUB_PWD
repository: siloco/silo-box
tag: $WERCKER_GIT_COMMIT
deploy:
steps:
- script:
name: setup phase ENV variables (TODO: move to wercker config)
code: |
export SILO=/usr/dev/silo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment