go-bouquins/.drone.yml
Meutel 9c440bc1d9
Some checks reported errors
continuous-integration/drone/push Build was killed
Fix docker tag
2019-09-13 09:55:40 +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: d7f2d15ccbe87980dd1b8f218e2a394ea6209e639918dcbd0969249d7c2fb2d2
...