From be1f1a20beebe467640d664357a576d90150331e Mon Sep 17 00:00:00 2001 From: Tom Gallacher Date: Tue, 18 Oct 2016 11:00:25 +0100 Subject: [PATCH] ci: deploy on commit to master if tests pass --- circle.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/circle.yml b/circle.yml index add92f7d..cc2c6613 100644 --- a/circle.yml +++ b/circle.yml @@ -7,16 +7,24 @@ machine: services: - docker -test: +dependencies: pre: + - npm install -g triton + - echo '{"url":"https://eu-ams-1.api.joyent.com","account":"'$SDC_ACCOUNT'","keyId":"c3:30:35:9b:85:48:73:44:31:cc:4b:2e:6a:00:16:e2","name":"eu-ams-1","curr":true}' | triton profile create -f - + - ./bin/setup.sh + override: - make install + +test: override: - make test -## Customize deployment commands -# deployment: -# staging: -# branch: master +deployment: + production: # just a label; label names are completely up to you + branch: master + commands: + - docker info + - docker-compose up -d ## Custom notifications # notify: