add drone config
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Jay 2020-01-15 02:20:23 +00:00
parent 6b1f3fc256
commit 350a7f99a2
1 changed files with 26 additions and 0 deletions

26
.drone.yml Normal file
View File

@ -0,0 +1,26 @@
---
kind: pipeline
name: test and build image
steps:
- name: test code
image: golang:1-alpine
command:
- apk add --no-cache build-base make
- make test
when:
event:
include:
- push
- name: test and build image
image: plugins/docker
settins:
purge: true
registry: docker.mtfos.xyz
repo: docker.mtfos.xyz/mtfos/tcp-proxy
autotag: true
tags:
- "${DRONE_COMMIT}"
- "${DRONE_TAG}"
when:
ref:
- refs/tags/**