Browse Source

cicd: 增加手动构建镜像流程5

Yi 1 year ago
parent
commit
41e0cb2b5d
1 changed files with 4 additions and 7 deletions
  1. 4 7
      .drone.yml

+ 4 - 7
.drone.yml

@@ -1,24 +1,21 @@
 kind: pipeline
 type: docker
 name: kpt-tmr
-
+#workspace:
+  #path: /drone/src
 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
-     - ls -l
      - pwd
+     - cp -R tmrgo/* ./
+     - ls -l
   - name: build
     image: plugins/docker:20.14.2
-    commands:
-      - cd ./trmgo
-      - pwd
-      - ls -l
     volumes:
       - name: hosts
         path: /etc/hosts