From 140d84bea1518fd9a24200c9ab8c1e203963e94d Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 1 Jul 2020 00:40:18 +0200 Subject: [PATCH] fix: trigger/when behaviour --- .drone.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index 33e1776..c657b30 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,24 +11,18 @@ steps: source: https://git.serguzim.me/emgauwa/controller/archive/master.tar.gz destination: emgauwa-controller.tar.gz when: - branch: master + ref: + - refs/heads/master + - refs/tags/v* - name: download-controller-testing image: plugins/download settings: source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz destination: emgauwa-controller.tar.gz when: - branch: testing -- name: download-controller-dev - image: plugins/download - settings: - source: https://git.serguzim.me/emgauwa/controller/archive/dev.tar.gz - destination: emgauwa-controller.tar.gz - when: - branch: - exclude: - - master - - testing + ref: + - refs/heads/testing + - refs/tags/testing-* - name: build-controller image: serguzim/emgauwa-builder @@ -63,3 +57,11 @@ steps: - build/core.ini when: event: tag + +trigger: + ref: + include: + - refs/heads/master + - refs/heads/testing + - refs/pull/** + - refs/tags/**