|
@ -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_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 |
|
|
|
|
|
|
|
|
- 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 |
|
|
- name: stop |
|
|
image: appleboy/drone-ssh |
|
|
image: appleboy/drone-ssh |
|
|
settings: |
|
|
settings: |
|
@ -42,6 +30,10 @@ steps: |
|
|
password: Microsoft@2022 |
|
|
password: Microsoft@2022 |
|
|
command_timeout: 10m |
|
|
command_timeout: 10m |
|
|
script: |
|
|
script: |
|
|
|
|
|
- echo $V_PRODUCT |
|
|
|
|
|
- echo ${V_PRODUCT} |
|
|
|
|
|
- echo "${V_PRODUCT}" |
|
|
|
|
|
- echo "$${V_PRODUCT}" |
|
|
- mkdir -p /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
- mkdir -p /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
- cd /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
- cd /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
- ./stop.cmd |
|
|
- ./stop.cmd |
|
@ -49,3 +41,15 @@ steps: |
|
|
- cd .. |
|
|
- cd .. |
|
|
- rm -rf publish |
|
|
- rm -rf publish |
|
|
- mkdir -p 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} |
|
|