|
@@ -20,6 +20,8 @@ steps:
|
|
|
- name: test
|
|
|
image: golang:1.17
|
|
|
commands:
|
|
|
+ - pwd
|
|
|
+ - ls -l
|
|
|
- cd /drone/src/kpt-tmr-group
|
|
|
- go test `go list ./... | grep -v -E "mock|store|test|fake|cmd|bin|backend|google|logger|proto"` -coverprofile .cover.txt
|
|
|
- go tool cover -func .cover.txt
|
|
@@ -42,6 +44,8 @@ steps:
|
|
|
repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr-group
|
|
|
registry: registry.cn-hangzhou.aliyuncs.com
|
|
|
tags: [ 1.0.0,latest ]
|
|
|
+
|
|
|
+
|
|
|
trigger:
|
|
|
branch:
|
|
|
include:
|
|
@@ -50,6 +54,7 @@ trigger:
|
|
|
include:
|
|
|
- push
|
|
|
|
|
|
+
|
|
|
volumes:
|
|
|
- name: docker-ca
|
|
|
host:
|