|
@@ -0,0 +1,58 @@
|
|
|
+kind: pipeline
|
|
|
+type: docker
|
|
|
+name: kptTmrGroup
|
|
|
+
|
|
|
+clone:
|
|
|
+ depth: 1
|
|
|
+ disable: true
|
|
|
+
|
|
|
+steps:
|
|
|
+ - name: clone
|
|
|
+ image: alpine/git
|
|
|
+ commands:
|
|
|
+ - git clone -b develop http://kpt.kptyun.cn:3000/xuyiping/kpt-tmr-group.git
|
|
|
+ - 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 ]
|
|
|
+ - name: remove-local-image
|
|
|
+ image: appleboy/drone-ssh
|
|
|
+ settings:
|
|
|
+ host: 192.168.1.70
|
|
|
+ username: tmrwatch
|
|
|
+ password:
|
|
|
+ from_secret: tmrwatch_password
|
|
|
+ port: 22
|
|
|
+ script:
|
|
|
+ - docker rm registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr-group:1.0.0
|
|
|
+
|
|
|
+
|
|
|
+trigger:
|
|
|
+ branch:
|
|
|
+ include:
|
|
|
+ - develop
|
|
|
+ event:
|
|
|
+ include:
|
|
|
+ - push
|
|
|
+
|
|
|
+volumes:
|
|
|
+ - name: docker-ca
|
|
|
+ host:
|
|
|
+ path: /etc/docker
|
|
|
+ - name: dockersock
|
|
|
+ host:
|
|
|
+ path: /var/run/docker.sock
|