2020-02-12 16:04:29 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2020-02-14 08:57:02 +00:00
|
|
|
name: linux-amd64-taggedver
|
2020-02-12 16:04:29 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
arch: amd64
|
|
|
|
os: linux
|
|
|
|
|
|
|
|
steps:
|
2020-02-13 22:47:33 +00:00
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
commands:
|
2020-02-13 22:49:48 +00:00
|
|
|
- pwd
|
2020-02-13 22:51:38 +00:00
|
|
|
- mkdir -p /go/src/git.martyn.berlin/martyn
|
|
|
|
- ln -s /drone/src /go/src/git.martyn.berlin/martyn/karaokards
|
2020-02-13 22:52:48 +00:00
|
|
|
- cd /go/src/git.martyn.berlin/martyn/karaokards
|
2020-02-13 22:47:33 +00:00
|
|
|
- go get
|
|
|
|
- go build
|
|
|
|
|
2020-02-12 16:39:00 +00:00
|
|
|
- name: publish
|
2020-02-12 16:04:29 +00:00
|
|
|
image: plugins/docker:18
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
2020-02-14 10:03:25 +00:00
|
|
|
dockerfile: build/package/Dockerfile
|
2020-02-12 16:55:47 +00:00
|
|
|
repo: imartyn/karaokardbot
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
2020-02-12 17:03:32 +00:00
|
|
|
from_secret: docker_password
|
2020-02-12 16:04:29 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
2020-02-14 08:57:02 +00:00
|
|
|
|
|
|
|
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
|