2019-09-11 13:03:12 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 1
|
|
|
|
GOOS: linux
|
|
|
|
commands:
|
|
|
|
- go test ./...
|
|
|
|
- go build -a -installsuffix cgo .
|
|
|
|
|
|
|
|
- name: lint
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go get -u golang.org/x/lint/golint
|
|
|
|
- golint -set_exit_status ./...
|
|
|
|
|
|
|
|
- name: vet
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go vet ./...
|
|
|
|
|
2019-09-13 07:42:35 +00:00
|
|
|
- name: docker
|
2019-09-11 15:42:26 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: reg.meutel.net
|
|
|
|
repo: reg.meutel.net/go-bouquins
|
|
|
|
username:
|
|
|
|
from_secret: registry_login
|
|
|
|
password:
|
|
|
|
from_secret: registry_password
|
|
|
|
auto_tag: true
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-09-13 10:11:41 +00:00
|
|
|
- name: docker-branch
|
2019-09-13 07:42:35 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
registry: reg.meutel.net
|
|
|
|
repo: reg.meutel.net/go-bouquins
|
2019-09-14 08:54:04 +00:00
|
|
|
tags: ${DRONE_REPO_BRANCH}
|
2019-09-13 08:15:46 +00:00
|
|
|
debug: true
|
2019-09-13 07:42:35 +00:00
|
|
|
username:
|
|
|
|
from_secret: registry_login
|
|
|
|
password:
|
|
|
|
from_secret: registry_password
|
|
|
|
when:
|
|
|
|
branch:
|
2019-09-13 10:11:41 +00:00
|
|
|
- feature/*
|
2019-09-13 07:42:35 +00:00
|
|
|
|
2019-09-11 13:03:12 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
2019-09-11 15:42:26 +00:00
|
|
|
- tag
|
2019-09-11 13:03:12 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: signature
|
2019-09-14 08:54:04 +00:00
|
|
|
hmac: 8e3121b0a7cf83d7636de405d5d5e49b9781d6b66d84122b0093391ede7e302d
|
2019-09-11 13:03:12 +00:00
|
|
|
|
|
|
|
...
|