|
@ -3,8 +3,8 @@ type: docker |
|
|
name: default |
|
|
name: default |
|
|
|
|
|
|
|
|
environment: |
|
|
environment: |
|
|
PRODUCT: product-name |
|
|
V_PRODUCT: product-name |
|
|
PROJECT: project-name |
|
|
V_PROJECT: project-name |
|
|
|
|
|
|
|
|
platform: |
|
|
platform: |
|
|
arch: amd64 |
|
|
arch: amd64 |
|
@ -31,7 +31,7 @@ steps: |
|
|
secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR |
|
|
secret_key: 0LEOWfXSDnaLbIYGZfdKUxyi2kYIayx4YvdLTgcR |
|
|
source: build/publish/**/* |
|
|
source: build/publish/**/* |
|
|
strip_prefix: build/publish/ |
|
|
strip_prefix: build/publish/ |
|
|
target: /$PRODUCT/${PROJECT}/${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_AUTHOR}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8} |
|
|
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 |
|
@ -42,8 +42,8 @@ steps: |
|
|
password: Microsoft@2022 |
|
|
password: Microsoft@2022 |
|
|
command_timeout: 10m |
|
|
command_timeout: 10m |
|
|
script: |
|
|
script: |
|
|
- mkdir -p /d/publish/${PRODUCT}/${PROJECT} |
|
|
- mkdir -p /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
- cd /d/publish/${PRODUCT}/${PROJECT} |
|
|
- cd /d/publish/${V_PRODUCT}/${V_PROJECT} |
|
|
- ./stop.cmd |
|
|
- ./stop.cmd |
|
|
- sleep 3 |
|
|
- sleep 3 |
|
|
- cd .. |
|
|
- cd .. |
|
|