Compare commits

...

1 Commits

Author SHA1 Message Date
jiannibang dfdde5c0bf feat: ci 2 years ago
  1. 12
      .drone.yml

12
.drone.yml

@ -127,8 +127,8 @@ steps:
commands: commands:
# - sed -i "s@https://.*"@https://iot-${DRONE_BRANCH}.123.1000my.com"@" build/public/config.json # - 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 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: when:
branch: branch:
- dev - dev
@ -151,8 +151,8 @@ steps:
commands: commands:
# - sed -i "s@https://.*"@https://iot.1000my.com"@" build/public/config.json # - 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 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: when:
branch: branch:
- master - master
@ -172,7 +172,7 @@ steps:
from_secret: "obs_secret" from_secret: "obs_secret"
cdn_url: https://qianmu-iot.1000my.com/ cdn_url: https://qianmu-iot.1000my.com/
commands: 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 - /cdn.bin
when: when:
branch: branch:
@ -194,7 +194,7 @@ steps:
from_secret: "obs_secret" from_secret: "obs_secret"
cdn_url: https://qianmu-iot.1000my.com/ cdn_url: https://qianmu-iot.1000my.com/
commands: 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 - /cdn.bin
when: when:
branch: branch:

Loading…
Cancel
Save