From 769110e7e0aa2f8116a6b068331a973ee5fd0a20 Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Tue, 10 Mar 2020 14:45:17 -0700 Subject: [PATCH] Only publish rpm on tag --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index c9bdfdcc26..76ff1dc88f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -75,6 +75,14 @@ steps: commands: - scripts/provision/generic/centos7/yum-install-rpm-tools - scripts/package-rpm + when: + instance: + - drone-publish.rancher.io + ref: + - refs/head/master + - refs/tags/* + event: + - tag - name: test image: rancher/dapper:v0.4.2 @@ -187,6 +195,14 @@ steps: commands: - scripts/provision/generic/centos7/yum-install-rpm-tools - scripts/package-rpm + when: + instance: + - drone-publish.rancher.io + ref: + - refs/head/master + - refs/tags/* + event: + - tag - name: test image: rancher/dapper:v0.4.2