Browse Source

test drone

master
wanggang 1 year ago
parent
commit
15a2fb01e9
  1. 37
      .drone.yml

37
.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
Loading…
Cancel
Save