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

Loading…
Cancel
Save