Only attempt to docker build when version tag is rolled.
This commit is contained in:
parent
0af0f25be4
commit
edc6f08b8b
31
.drone.yml
31
.drone.yml
|
@ -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
|
Loading…
Reference in New Issue