kind: pipeline type: docker name: kptTmrGroup clone: depth: 1 disable: true environment: GOOS: linux GOARCH: amd64 APP_ENVIRONMENT: test GO_WORK_DIR: /drone/src/kpt-tmr-group/ steps: - name: clone image: alpine/git commands: - git clone -b develop http://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git - name: test image: golang:1.17 commands: - 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 - rm .cover.txt - name: build image: plugins/docker volumes: - name: hosts path: /etc/hosts - name: docker-ca path: /etc/docker - name: dockersock path: /var/run/docker.sock settings: dockerfile: /drone/src/kpt-tmr-group/Dockerfile username: from_secret: aliyuncs_username password: from_secret: aliyuncs_password repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr-group registry: registry.cn-hangzhou.aliyuncs.com tags: [ 1.0.7,latest ] trigger: branch: include: - develop event: - push volumes: - name: docker-ca host: path: /etc/docker - name: dockersock host: path: /var/run/docker.sock