go-bouquins/.drone.yml
Meutel a4389a3212
Some checks failed
continuous-integration/drone/push Build is failing
Fix branch
2019-09-14 11:01:45 +02:00

67 lines
1.2 KiB
YAML

---
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 ./...
- name: docker
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
- name: docker-branch
image: plugins/docker
settings:
registry: reg.meutel.net
repo: reg.meutel.net/go-bouquins
tags: ${DRONE_BRANCH}
debug: true
username:
from_secret: registry_login
password:
from_secret: registry_password
when:
branch:
- feature/*
trigger:
event:
- push
- tag
---
kind: signature
hmac: 46bfe235a094ff6a6c85b283d666c4095f834678ed38e220f4a622a2a2f5c85f
...