|
@@ -1,12 +1,43 @@
|
|
|
kind: pipeline
|
|
|
type: docker
|
|
|
-name: default
|
|
|
+name: kptTmrGroup-server-publish
|
|
|
|
|
|
steps:
|
|
|
- - name: build
|
|
|
- image: golang:1.17.1
|
|
|
- environment:
|
|
|
- GOPROXY: "https://goproxy.cn,direct"
|
|
|
+ - name: test
|
|
|
+ image: golang:1.17
|
|
|
commands:
|
|
|
- - env
|
|
|
- - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o kpt-gogs-demo
|
|
|
+ - pwd
|
|
|
+ - ls -l
|
|
|
+ - 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.0,latest]
|
|
|
+trigger:
|
|
|
+ branch:
|
|
|
+ include:
|
|
|
+ - develop
|
|
|
+ event:
|
|
|
+ - push
|
|
|
+ - merge
|
|
|
+
|
|
|
+volumes:
|
|
|
+ - name: docker-ca
|
|
|
+ host:
|
|
|
+ path: /etc/docker
|
|
|
+ - name: dockersock
|
|
|
+ host:
|
|
|
+ path: /var/run/docker.sock
|