go-bouquins/.drone.yml
Meutel 4e30bfd279
Some checks failed
continuous-integration/drone/push Build is failing
Build docker rc
2019-09-13 09:42:35 +02:00

67 lines
1.1 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-rc
image: plugins/docker
settings:
registry: reg.meutel.net
repo: reg.meutel.net/go-bouquins
tags:
- rc-${DRONE_COMMIT}
username:
from_secret: registry_login
password:
from_secret: registry_password
when:
branch:
- rc/*
trigger:
event:
- push
- tag
---
kind: signature
hmac: d7f2d15ccbe87980dd1b8f218e2a394ea6209e639918dcbd0969249d7c2fb2d2
...