fix: trigger/when behaviour

This commit is contained in:
Tobias Reisinger 2020-07-01 00:40:18 +02:00
parent 65b8660d37
commit 140d84bea1

View file

@ -11,24 +11,18 @@ steps:
source: https://git.serguzim.me/emgauwa/controller/archive/master.tar.gz source: https://git.serguzim.me/emgauwa/controller/archive/master.tar.gz
destination: emgauwa-controller.tar.gz destination: emgauwa-controller.tar.gz
when: when:
branch: master ref:
- refs/heads/master
- refs/tags/v*
- name: download-controller-testing - name: download-controller-testing
image: plugins/download image: plugins/download
settings: settings:
source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz source: https://git.serguzim.me/emgauwa/controller/archive/testing.tar.gz
destination: emgauwa-controller.tar.gz destination: emgauwa-controller.tar.gz
when: when:
branch: testing ref:
- name: download-controller-dev - refs/heads/testing
image: plugins/download - refs/tags/testing-*
settings:
source: https://git.serguzim.me/emgauwa/controller/archive/dev.tar.gz
destination: emgauwa-controller.tar.gz
when:
branch:
exclude:
- master
- testing
- name: build-controller - name: build-controller
image: serguzim/emgauwa-builder image: serguzim/emgauwa-builder
@ -63,3 +57,11 @@ steps:
- build/core.ini - build/core.ini
when: when:
event: tag event: tag
trigger:
ref:
include:
- refs/heads/master
- refs/heads/testing
- refs/pull/**
- refs/tags/**