From 6973d1dcedfb15097965bf2b6b4389552c01c8e6 Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Sun, 27 Dec 2020 21:12:18 -0800 Subject: [PATCH] use global trigger for pipeline --- .drone.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 647691c..2ef42c4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,10 @@ kind: pipeline type: docker name: main +trigger: + branche: + - 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.drone - docker push registry.jfmonty2.com/minebot:latest - when: - branch: - - master volumes: - name: docker-socket