|
@@ -6,36 +6,19 @@ clone:
|
|
depth: 1
|
|
depth: 1
|
|
disable: true
|
|
disable: true
|
|
|
|
|
|
|
|
+environment:
|
|
|
|
+ GOOS: linux
|
|
|
|
+ GOARCH: amd64
|
|
|
|
+
|
|
steps:
|
|
steps:
|
|
- name: clone
|
|
- name: clone
|
|
image: alpine/git
|
|
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:
|
|
commands:
|
|
- pwd
|
|
- pwd
|
|
- ls -l
|
|
- ls -l
|
|
- - cd /drone/src
|
|
|
|
- - 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]
|
|
|
|
|
|
+ - git clone -b develop http://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
trigger:
|
|
trigger:
|
|
branch:
|
|
branch:
|