zcuishan 8 місяців тому
батько
коміт
75dbfdc319
1 змінених файлів з 28 додано та 28 видалено
  1. 28 28
      .drone.yml

+ 28 - 28
.drone.yml

@@ -6,19 +6,19 @@ node:
   mode: local_test
 
 steps:
-  - name: yarn-install
-    image: node:18.16.1
-    volumes:
-      - name: modules-cache
-        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
-    commands:
-      - yarn config set registry http://registry.npmjs.org
-      # - yarn install
-      # - yarn run build
+#  - name: yarn-install
+#    image: node:18.16.1
+#    volumes:
+#      - name: modules-cache
+#        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
+#    commands:
+#      - yarn config set registry http://registry.npmjs.org
+#      - yarn install
+#      - yarn run build
 
   - name: build
     image: docker:20.10.7
-    depends_on: [yarn-install]
+#    depends_on: [yarn-install]
     volumes:
       - name: docker
         path: /var/run/docker.sock
@@ -61,19 +61,19 @@ node:
   mode: local_pre
 
 steps:
-  - name: yarn-install
-    image: node:18.16.1
-    volumes:
-      - name: modules-cache
-        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
-    commands:
-      - yarn config set registry http://registry.npmjs.org
-    #  - yarn install
-    #  - yarn run build
+#  - name: yarn-install
+#    image: node:18.16.1
+#    volumes:
+#      - name: modules-cache
+#        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
+#    commands:
+#      - yarn config set registry http://registry.npmjs.org
+#      - yarn install
+#      - yarn run build
 
   - name: build
     image: docker:20.10.7
-    depends_on: [yarn-install]
+#    depends_on: [yarn-install]
     volumes:
       - name: docker
         path: /var/run/docker.sock
@@ -116,19 +116,19 @@ node:
   mode: local_test
 
 steps:
-  - name: yarn-install
-    depends_on: [clone]
-    image: node:18.16.1
-    volumes:
-      - name: modules-cache
-        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
-    commands:
+#  - name: yarn-install
+#    depends_on: [clone]
+#    image: node:18.16.1
+#    volumes:
+#      - name: modules-cache
+#        path: /drone/src/node_modules # 下载依赖的目录挂载出来,防止重复下载
+#    commands:
   #    - yarn run build
 
   # - yarn install && yarn run build
   - name: push
     image: docker:20.10.7
-    depends_on: [yarn-install]
+#    depends_on: [yarn-install]
     volumes:
       - name: docker
         path: /var/run/docker.sock