go-bouquins/.drone.yml
Meutel 0d88a88c34
Some checks failed
continuous-integration/drone/push Build is failing
fix sign
2019-09-13 09:58:10 +02:00

68 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}
username:
from_secret: registry_login
password:
from_secret: registry_password
when:
branch:
- rc/*
trigger:
event:
- push
- tag
---
kind: signature
hmac: 48846dd0b6f539de57539915eadfdb322c172db24ac51c46f95c1f6c82967beb
...