use global trigger for pipeline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Joseph Montanaro 2020-12-27 21:16:38 -08:00
parent 5ffcdb8097
commit 77c352c7ac

View File

@ -3,6 +3,10 @@ kind: pipeline
type: docker
name: main
trigger:
branch:
- master
steps:
- name: build
image: docker:latest
@ -11,9 +15,6 @@ steps:
path: /var/run/docker.sock
commands:
- docker build -t registry.jfmonty2.com/minebot:latest .
when:
branch:
- master
- name: deploy
image: docker:latest
@ -26,9 +27,6 @@ steps:
commands:
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
- docker push registry.jfmonty2.com/minebot:latest
when:
branch:
- master
volumes:
- name: docker-socket