From 15a2fb01e944053562ba412e2e04ad32de281fa9 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Wed, 20 Sep 2023 14:24:24 +0800 Subject: [PATCH] test drone --- .drone.yml | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/.drone.yml b/.drone.yml index 548ab9af..2ea9c5d1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,10 +11,6 @@ steps: - name: build image: mcr.microsoft.com/dotnet/sdk:6.0 privileged: true - volumes: - - name: cache - host: - path: /root/.nuget/packages commands: - cd ./build - chmod 755 ./build.sh @@ -51,20 +47,8 @@ steps: - rm -rf publish - mkdir publish - - name: deploy-scp - image: appleboy/drone-scp - settings: - host: dev.ccwin-in.com - port: 16085 - username: Administrator - password: Microsoft@2022 - source: build/publish - target: /d/BQ-JS/publish - timeout: 1800s - command_timeout: 30m - - # - name: deploy-sftp - # image: axute/drone-sftp + # - name: deploy-scp + # image: appleboy/drone-scp # settings: # host: dev.ccwin-in.com # port: 16085 @@ -72,6 +56,18 @@ steps: # password: Microsoft@2022 # source: build/publish # target: /d/BQ-JS/publish + # timeout: 1800s + # command_timeout: 30m + + - name: deploy-sftp + image: axute/drone-sftp + settings: + host: dev.ccwin-in.com + port: 16085 + username: Administrator + password: Microsoft@2022 + source: build/publish + target: /d/BQ-JS/publish - name: start image: appleboy/drone-ssh @@ -85,8 +81,3 @@ steps: - cd /d/BQ-JS/publish - ./start.cmd - echo ok - -volumes: - - name: cache - host: - path: /root/cache/.nuget \ No newline at end of file