Browse Source

Only attempt to docker build when version tag is rolled.

master
Martyn Ranyard 1 year ago
parent
commit
edc6f08b8b
1 changed files with 30 additions and 1 deletions
  1. +30
    -1
      .drone.yml

+ 30
- 1
.drone.yml 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

Loading…
Cancel
Save