Browse Source

test

master
wanggang 1 year ago
parent
commit
39c7fa8a81
  1. 28
      .drone.yml

28
.drone.yml

@ -21,18 +21,6 @@ steps:
- 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
- name: publish
image: plugins/s3
settings:
endpoint: http://dev.ccwin-in.com:3008
path_style: true
bucket: default
access_key: O222sbIaMKeGfeX18t8K
secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
source: build/publish/**/*
strip_prefix: build/publish/
target: /$V_PRODUCT/${V_PROJECT}/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}
- name: stop
image: appleboy/drone-ssh
settings:
@ -42,6 +30,10 @@ steps:
password: Microsoft@2022
command_timeout: 10m
script:
- echo $V_PRODUCT
- echo ${V_PRODUCT}
- echo "${V_PRODUCT}"
- echo "$${V_PRODUCT}"
- mkdir -p /d/publish/${V_PRODUCT}/${V_PROJECT}
- cd /d/publish/${V_PRODUCT}/${V_PROJECT}
- ./stop.cmd
@ -49,3 +41,15 @@ steps:
- cd ..
- rm -rf publish
- mkdir -p publish
- name: publish
image: plugins/s3
settings:
endpoint: http://dev.ccwin-in.com:3008
path_style: true
bucket: default
access_key: O222sbIaMKeGfeX18t8K
secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR
source: build/publish/**/*
strip_prefix: build/publish/
target: /$V_PRODUCT/${V_PROJECT}/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}

Loading…
Cancel
Save