From 350a7f99a22e1613a4a78562aac5e04e612eea38 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 15 Jan 2020 02:20:23 +0000 Subject: [PATCH] add drone config --- .drone.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..76ea898 --- /dev/null +++ b/.drone.yml @@ -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/**