fixed drone
Some checks failed
the build failed

This commit is contained in:
ston1th 2018-12-24 15:25:52 +01:00
commit 3ada406af1

54
.drone.yml Normal file
View file

@ -0,0 +1,54 @@
workspace:
base: /go
path: src/github.com/drone/drone
pipeline:
test:
image: golang:alpine
commands:
- go test -cover db.go
- go test -cover srv.go
build:
image: golang:alpine
commands: sh .drone.sh
when:
event: [ push, tag ]
publish_srv:
image: plugins/docker
repo: ciapp/srv
registry: kube-registry.kube-system.svc.cluster.local:5000
dockerfile: Dockerfile.srv
tag: [ latest ]
when:
branch: master
event: push
publish_db:
image: plugins/docker
repo: ciapp/db
registry: kube-registry.kube-system.svc.cluster.local:5000
dockerfile: Dockerfile.db
tag: [ latest ]
when:
branch: master
event: push
release_srv:
image: plugins/docker
repo: ciapp/srv
registry: kube-registry.kube-system.svc.cluster.local:5000
dockerfile: Dockerfile.srv
tag: [ v1, v2 ]
when:
event: tag
release_db:
image: plugins/docker
repo: ciapp/db
registry: kube-registry.kube-system.svc.cluster.local:5000
dockerfile: Dockerfile.db
tag: [ v1, v2 ]
when:
event: tag