add CI for pr

This commit is contained in:
Umputun
2018-05-12 18:20:35 -05:00
parent d0e639c487
commit f8c6acd164
+12
View File
@@ -19,6 +19,7 @@ pipeline:
- latest
when:
branch: [master, release/*]
event: push
docker-branch:
image: plugins/docker
@@ -29,6 +30,16 @@ pipeline:
when:
branch:
exclude: [master, release/*]
event: push
pr_build:
image: docker
commands:
- docker build .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: pull
deploy:
image: appleboy/drone-ssh
@@ -42,6 +53,7 @@ pipeline:
- docker-compose up -d
when:
branch: master
event: push
notify:
image: drillster/drone-email