go-bouquins/.drone.yml
Meutel 677429a0fd
Some checks reported errors
continuous-integration/drone/push Build encountered an error
sign
2019-09-27 11:04:35 +02:00

71 lines
1.3 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##feature/}
debug: true
username:
from_secret: registry_login
password:
from_secret: registry_password
when:
branch:
- feature/*
- name: deploy-branch
# TODO ansible
image: reg.meutel.net/go-bouquins:${DRONE_BRANCH##feature/}
trigger:
event:
- push
- tag
---
kind: signature
hmac: 38c1d0cae592ff1383424fe1608f261b4a41887f688040dddc7694303cd5fbd0
...