Explorar o código

添加 '.drone.yml'

root %!s(int64=4) %!d(string=hai) anos
pai
achega
000ef55105
Modificáronse 1 ficheiros con 45 adicións e 0 borrados
  1. 45 0
      .drone.yml

+ 45 - 0
.drone.yml

@@ -0,0 +1,45 @@
+kind: pipeline
+name: default
+steps:
+  - name: build
+    image: node:14
+#    volumes:
+#      - name: cache # The Volume's name
+#        path: ./node_modules # The path in the container
+#    environment:
+#      NODE_ENV: product
+    commands:
+      - npm config set registry http://registry.npm.taobao.org
+      - npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/
+      - npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
+      - npm i
+      - npm run build
+      - pwd
+      - ls -la
+  - name: scp_files
+    image: appleboy/drone-scp
+    settings:
+      host: 172.17.0.1
+      username: root
+      password: $jgkj001
+      debug: true
+      target: /www/wwwroot/railway-web.iamsee.com/release
+      source: dist
+      rm: true
+  - name: deploy
+    image:  appleboy/drone-ssh
+    settings:
+      host: deploy.iamsee.com
+      username: root
+      password: $jgkj001
+      debug: true
+      script:
+        - export PATH=/usr/local/bin:$PATH
+        - echo $PATH
+volumes:
+  - name: cache # The name use in this pipeline,
+    host:
+      path: /tmp/cache # The path be used in the host.
+  - name: dockersock
+    host:
+      path: /var/run/docker.sock