From dfdde5c0bf4fc82351b9b6ee18d3c0ee56ced260 Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Mon, 16 Dec 2024 17:05:44 +0800 Subject: [PATCH] feat: ci --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index f7394bc..5f28874 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: