Browse Source

test drone

master
wanggang 1 year ago
parent
commit
2586c116da
  1. 23
      .drone.yml

23
.drone.yml

@ -13,8 +13,8 @@ steps:
commands:
- cd ./build
- chmod 755 ./build.sh
- ./build.sh
# - mkdir publish
#- ./build.sh
- mkdir publish
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}\n">./publish/version.txt
- echo ${DRONE_COMMIT_MESSAGE}>./publish/version.txt
- ls publish
@ -47,15 +47,26 @@ steps:
- rm -rf publish
- mkdir publish
# - name: deploy
# image: cupcakearmy/drone-deploy
# settings:
# host: dev.ccwin-in.com
# port: 16085
# user: Administrator
# password: Microsoft@2022
# sources: ./build/publish
# target: /d/BQ-JS/publish
- name: deploy
image: cupcakearmy/drone-deploy
image: appleboy/drone-ssh
settings:
host: dev.ccwin-in.com
port: 16085
user: Administrator
username: Administrator
password: Microsoft@2022
sources: ./build/publish
target: /d/BQ-JS/publish
command_timeout: 10m
script:
- rsync
- name: start
image: appleboy/drone-ssh

Loading…
Cancel
Save