go-bouquins/.drone.yml
Meutel 100429d8cd
Some checks reported errors
continuous-integration/drone/push Build was killed
debug
2019-09-13 10:15:46 +02:00

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