Only attempt to docker build when version tag is rolled.

This commit is contained in:
Martyn Ranyard 2020-02-14 09:57:02 +01:00
parent 0af0f25be4
commit edc6f08b8b
1 changed files with 30 additions and 1 deletions

View File

@ -1,6 +1,6 @@
kind: pipeline
type: docker
name: linux-amd64
name: linux-amd64-taggedver
platform:
arch: amd64
@ -32,3 +32,32 @@ steps:
event:
- push
- tag
trigger:
ref:
- refs/tags/v*
---
kind: pipeline
type: docker
name: linux-amd64-devel-master
platform:
arch: amd64
os: linux
steps:
- name: build
image: golang
commands:
- pwd
- mkdir -p /go/src/git.martyn.berlin/martyn
- ln -s /drone/src /go/src/git.martyn.berlin/martyn/karaokards
- cd /go/src/git.martyn.berlin/martyn/karaokards
- go get
- go build
trigger:
ref:
- refs/heads/devel
- refs/heads/master