Browse Source

新生成时间长问题修复1

baishaojie 8 months ago
parent
commit
212f365cb2
1 changed files with 50 additions and 0 deletions
  1. 50 0
      drone.yml

+ 50 - 0
drone.yml

@@ -0,0 +1,50 @@
+kind: pipeline
+type: docker
+name: kpt-tmr
+
+clone:
+  depth: 1
+  disable: true
+steps:
+  - name: clone
+    image: alpine/git
+    commands:
+     - git clone -b develop http://192.168.1.8:3000/baishaojie/tmrgo.git
+     - cp -R tmrgo/* ./
+  - name: build
+    image: plugins/docker:20.14.2
+    volumes:
+      - name: hosts
+        path: /etc/hosts
+      - name: docker-ca
+        path: /etc/docker
+      - name: docker-sock
+        path: /var/run/docker.sock
+    settings:
+      dockerfile: /drone/src/tmrgo/Dockerfile
+      username:
+        from_secret: aliyun_name
+      password:
+        from_secret: aliyun_password
+      repo: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-tmr
+      registry: registry.cn-hangzhou.aliyuncs.com
+      tags: [ 1.0.4,latest ]
+
+trigger:
+  branch:
+    include:
+      - develop
+  event:
+    include:
+      - push
+
+volumes:
+  - name: host
+    host:
+      path: /etc/host
+  - name: docker-ca
+    host:
+      path: /ect/docker
+  - name: docker-sock
+    host:
+      path: /var/run/docker.sock