Only publish rpm on tag

This commit is contained in:
Erik Wilson 2020-03-10 14:45:17 -07:00
parent d578198ac0
commit 769110e7e0

View File

@ -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