2020-04-25 17:52:47 +08:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: golang:1.14-alpine
|
2020-04-25 18:07:18 +08:00
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
2020-04-25 17:52:47 +08:00
|
|
|
commands:
|
|
|
|
- cd coredns && go test
|
|
|
|
- name: build
|
|
|
|
image: golang:1.14-alpine
|
2020-04-25 18:07:18 +08:00
|
|
|
pull: true
|
2020-04-25 17:52:47 +08:00
|
|
|
environment:
|
2020-04-25 18:04:29 +08:00
|
|
|
CGO_ENABLED: 0
|
|
|
|
GOOS: linux
|
|
|
|
GOARCH: amd64
|
2020-04-25 17:52:47 +08:00
|
|
|
commands:
|
|
|
|
- cd coredns && go build
|
2020-04-25 18:16:57 +08:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
2020-04-25 17:52:47 +08:00
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
base_url: https://git.makerforce.io
|
2020-04-25 18:04:29 +08:00
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
2020-04-25 17:52:47 +08:00
|
|
|
files: coredns/coredns
|
|
|
|
when:
|
2020-04-25 18:16:57 +08:00
|
|
|
event:
|
|
|
|
- tag
|
2020-04-25 17:52:47 +08:00
|
|
|
|
|
|
|
# vim: ts=2:sw=2
|