Browse Source

test drone

master
wanggang 1 year ago
parent
commit
5a8149235d
  1. 96
      .drone.yml

96
.drone.yml

@ -20,54 +20,54 @@ steps:
- echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt - echo "${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}">./publish/version.txt
- ls - ls
# - name: publish - name: publish
# image: plugins/s3 image: plugins/s3
# settings: settings:
# endpoint: http://dev.ccwin-in.com:3008 endpoint: http://dev.ccwin-in.com:3008
# path_style: true path_style: true
# bucket: default bucket: default
# access_key: O222sbIaMKeGfeX18t8K access_key: O222sbIaMKeGfeX18t8K
# secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
# source: build/publish/**/* source: build/publish/**/*
# strip_prefix: build/publish/ strip_prefix: build/publish/
# target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} target: /jie-suan/bei-qi/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}
# - name: stop - name: stop
# image: appleboy/drone-ssh image: appleboy/drone-ssh
# settings: settings:
# host: dev.ccwin-in.com host: dev.ccwin-in.com
# port: 16085 port: 16085
# username: Administrator username: Administrator
# password: Microsoft@2022 password: Microsoft@2022
# command_timeout: 10m command_timeout: 10m
# script: script:
# - cd D:\BQ-JS\publish - cd D:\BQ-JS\publish
# - stop.cmd - stop.cmd
# - cd .. - cd ..
# - dir - dir
# - rmdir /s /q D:\BQ-JS\publish - rmdir /s /q D:\BQ-JS\publish
# - dir - dir
# - name: deploy - name: deploy
# image: appleboy/drone-scp image: appleboy/drone-scp
# settings: settings:
# host: dev.ccwin-in.com host: dev.ccwin-in.com
# port: 16085 port: 16085
# username: Administrator username: Administrator
# password: Microsoft@2022 password: Microsoft@2022
# command_timeout: 10m command_timeout: 10m
# target: /d:/BQ-JS/publish target: /d:/BQ-JS/publish
# source: build/publish/**/* source: build/publish/**/*
# - name: start - name: start
# image: appleboy/drone-ssh image: appleboy/drone-ssh
# settings: settings:
# host: dev.ccwin-in.com host: dev.ccwin-in.com
# port: 16085 port: 16085
# username: Administrator username: Administrator
# password: Microsoft@2022 password: Microsoft@2022
# command_timeout: 10m command_timeout: 10m
# script: script:
# - cd D:\BQ-JS\publish - cd D:\BQ-JS\publish
# - start.cmd - start.cmd
# - echo ok - echo ok

Loading…
Cancel
Save