Created
September 2, 2012 22:35
-
-
Save billhorsman/3605244 to your computer and use it in GitHub Desktop.
Circle CI Config for deployment to Heroku with 10 min timeout
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
deployment: | |
staging: | |
branch: master | |
commands: | |
- git push [email protected]:yakify-ci.git: | |
timeout: 600 | |
dependencies: | |
pre: | |
- gem uninstall bundler | |
- gem install bundler --pre |
deployment:
staging:
branch: master
commands:
- git push [email protected]:yakify-ci.git:
timeout: 600
Because of YAML oddities, the timeout needs to be indented four spaces past the '-', not two.
One might need the CIRCLE_SHA1:
deployment:
staging:
branch: master
commands:
- git push [email protected]:APP-NAME.git $CIRCLE_SHA1:master:
timeout: 600
I'm using fabric to push stuff for me, but otherwise very similar to your code, but I can't get the timeout value to work properly:
deployment:
production:
branch: master
commands:
- fab d_prod
timeout: 600
staging:
branch: stage
commands:
- fab d_stage
timeout: 600
Circle complains with
Syntax Error while parsing circle.yml: mapping values are not allowed here in "", line 16, column 16: timeout: 360 ^
Would one of you happen to know why?
@antonagestam You need a colon at the end of fab d_stage
and fab d_prod
.
Nice! I didn't know you could use timeout
on just any command like that in Circle.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deployment:
staging:
branch: master
commands:
- git push [email protected]:yakify-ci.git:
timeout: 600
dependencies:
pre:
- gem uninstall bundler
- gem install bundler --pre