mirror of
https://github.com/yldio/copilot.git
synced 2024-11-28 06:00:06 +02:00
ci: deploy on commit to master if tests pass
This commit is contained in:
parent
b9ccacbad9
commit
be1f1a20be
18
circle.yml
18
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:
|
||||
|
Loading…
Reference in New Issue
Block a user