tcp-proxy/.drone.yml

27 lines
528 B
YAML
Raw Normal View History

2020-01-15 02:20:23 +00:00
---
kind: pipeline
name: test and build image
steps:
- name: test code
image: golang:1-alpine
2020-01-15 02:21:58 +00:00
commands:
2020-01-15 02:20:23 +00:00
- apk add --no-cache build-base make
- make test
when:
event:
include:
- push
- name: test and build image
image: plugins/docker
2020-01-15 02:24:44 +00:00
settings:
2020-01-15 02:20:23 +00:00
purge: true
registry: docker.mtfos.xyz
repo: docker.mtfos.xyz/mtfos/tcp-proxy
autotag: true
tags:
- "${DRONE_COMMIT}"
- "${DRONE_TAG}"
when:
ref:
- refs/tags/**