|
|
|
@ -127,8 +127,8 @@ steps: |
|
|
|
commands: |
|
|
|
# - sed -i "s@https://.*"@https://iot-${DRONE_BRANCH}.123.1000my.com"@" build/public/config.json |
|
|
|
- obsutil config -i=$obs_key -k=$obs_secret -e=obs.cn-east-2.myhuaweicloud.com |
|
|
|
- obsutil mkdir obs://qianmu-iot/${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}-${DRONE_BRANCH}/ |
|
|
|
- obsutil cp -r -f -flat build obs://qianmu-iot/${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}-${DRONE_BRANCH}/ |
|
|
|
- obsutil mkdir obs://qianmu-iot/${DRONE_REPO_NAME}-${DRONE_BRANCH}/ |
|
|
|
- obsutil cp -r -f -flat build obs://qianmu-iot/${DRONE_REPO_NAME}-${DRONE_BRANCH}/ |
|
|
|
when: |
|
|
|
branch: |
|
|
|
- dev |
|
|
|
@ -151,8 +151,8 @@ steps: |
|
|
|
commands: |
|
|
|
# - sed -i "s@https://.*"@https://iot.1000my.com"@" build/public/config.json |
|
|
|
- obsutil config -i=$obs_key -k=$obs_secret -e=obs.cn-east-2.myhuaweicloud.com |
|
|
|
- obsutil mkdir obs://qianmu-iot/${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}/ |
|
|
|
- obsutil cp -r -f -flat build obs://qianmu-iot/${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}/ |
|
|
|
- obsutil mkdir obs://qianmu-iot/${DRONE_REPO_NAME}/ |
|
|
|
- obsutil cp -r -f -flat build obs://qianmu-iot/${DRONE_REPO_NAME}/ |
|
|
|
when: |
|
|
|
branch: |
|
|
|
- master |
|
|
|
@ -172,7 +172,7 @@ steps: |
|
|
|
from_secret: "obs_secret" |
|
|
|
cdn_url: https://qianmu-iot.1000my.com/ |
|
|
|
commands: |
|
|
|
- export cdn_url=https://qianmu-iot.1000my.com/${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}-${DRONE_BRANCH}/ |
|
|
|
- export cdn_url=https://qianmu-iot.1000my.com/${DRONE_REPO_NAME}-${DRONE_BRANCH}/ |
|
|
|
- /cdn.bin |
|
|
|
when: |
|
|
|
branch: |
|
|
|
@ -194,7 +194,7 @@ steps: |
|
|
|
from_secret: "obs_secret" |
|
|
|
cdn_url: https://qianmu-iot.1000my.com/ |
|
|
|
commands: |
|
|
|
- export cdn_url=https://qianmu-iot.1000my.com/${DRONE_REPO_NAMESPACE}-${DRONE_REPO_NAME}/ |
|
|
|
- export cdn_url=https://qianmu-iot.1000my.com/${DRONE_REPO_NAME}/ |
|
|
|
- /cdn.bin |
|
|
|
when: |
|
|
|
branch: |
|
|
|
|