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 - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
privileged: true privileged: true
volumes:
- name: cache
host:
path: /root/.nuget/packages
commands: commands:
- cd ./build - cd ./build
- chmod 755 ./build.sh - chmod 755 ./build.sh
@ -51,20 +47,8 @@ steps:
- rm -rf publish - rm -rf publish
- mkdir publish - mkdir publish
- name: deploy-scp # - name: deploy-scp
image: appleboy/drone-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
# settings: # settings:
# host: dev.ccwin-in.com # host: dev.ccwin-in.com
# port: 16085 # port: 16085
@ -72,6 +56,18 @@ steps:
# password: Microsoft@2022 # password: Microsoft@2022
# source: build/publish # source: build/publish
# target: /d/BQ-JS/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 - name: start
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -85,8 +81,3 @@ steps:
- cd /d/BQ-JS/publish - cd /d/BQ-JS/publish
- ./start.cmd - ./start.cmd
- echo ok - echo ok
volumes:
- name: cache
host:
path: /root/cache/.nuget
Loading…
Cancel
Save