27 lines
528 B
YAML
27 lines
528 B
YAML
---
|
|
kind: pipeline
|
|
name: test and build image
|
|
steps:
|
|
- name: test code
|
|
image: golang:1-alpine
|
|
commands:
|
|
- apk add --no-cache build-base make
|
|
- make test
|
|
when:
|
|
event:
|
|
include:
|
|
- push
|
|
- name: test and build image
|
|
image: plugins/docker
|
|
settings:
|
|
purge: true
|
|
registry: docker.mtfos.xyz
|
|
repo: docker.mtfos.xyz/mtfos/tcp-proxy
|
|
autotag: true
|
|
tags:
|
|
- "${DRONE_COMMIT}"
|
|
- "${DRONE_TAG}"
|
|
when:
|
|
ref:
|
|
- refs/tags/**
|