2020-05-17 12:25:46 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: linux-amd64-taggedver
|
|
|
|
|
|
|
|
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/LEDController
|
|
|
|
- cd /go/src/git.martyn.berlin/martyn/LEDController
|
2020-05-19 10:53:33 +00:00
|
|
|
- make deps
|
|
|
|
- make
|
2020-05-17 12:25:46 +00:00
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: plugins/docker:18
|
|
|
|
settings:
|
|
|
|
auto_tag: true
|
|
|
|
auto_tag_suffix: linux-amd64
|
|
|
|
dockerfile: build/package/Dockerfile
|
2020-05-17 12:36:49 +00:00
|
|
|
repo: imartyn/ledcontroller
|
2020-05-17 12:25:46 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
|
|
|
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/LEDController
|
|
|
|
- cd /go/src/git.martyn.berlin/martyn/LEDController
|
2020-05-19 10:55:26 +00:00
|
|
|
- make deps
|
|
|
|
- make
|
2020-05-17 12:25:46 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/devel
|
|
|
|
- refs/heads/master
|