Browse Source

测试 drone

liql 2 years ago
parent
commit
9ca2103bd3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drone.yml

+ 3 - 3
drone.yml

@@ -4,15 +4,15 @@ name: veterans_demo # 定义流水线名称
 
 steps: # 定义流水线执行步骤,这些步骤将顺序执行
   - name: package # 流水线名称
-    image: alpine:latest # 定义创建容器的Docker镜像
+    image: alpine:2.6 # 定义创建容器的Docker镜像
     volumes: #将容器内目录挂载到宿主机,仓库需要开启Trusted设置
       - name: node-build
         path: /tmp
     commands: # 定义在Docker容器中执行的shell命令
-      - pwd
+      - cd /
       - ls
       - mkdir -p /tmp/veterans_demo
-      - cp -r /drone/src/images index.html js styles /tmp/veterans_demo
+      - cp -r /drone/src/* /tmp/veterans_demo
 
   - name: deploy
     image: appleboy/drone-ssh # SSH工具镜像