|
|
@ -51,7 +51,7 @@ steps: |
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
- echo 192.168.0.2 git.1000my.com >> /etc/hosts |
|
|
- ping git.1000my.com -c 1 |
|
|
- ping git.1000my.com -c 1 |
|
|
- git fetch --tags |
|
|
- git fetch --tags |
|
|
- git submodule init |
|
|
|
|
|
|
|
|
# - git submodule init |
|
|
- git submodule update --recursive --remote |
|
|
- git submodule update --recursive --remote |
|
|
# - git submodule add -b master https://git.1000my.com/project_runteng/server_iot-common.git |
|
|
# - git submodule add -b master https://git.1000my.com/project_runteng/server_iot-common.git |
|
|
# - git mv server_iot-common iot-common |
|
|
# - git mv server_iot-common iot-common |
|
|
@ -62,6 +62,9 @@ steps: |
|
|
- git describe --abbrev=0 --tags > .tags |
|
|
- git describe --abbrev=0 --tags > .tags |
|
|
- cat .tags |
|
|
- cat .tags |
|
|
|
|
|
|
|
|
|
|
|
- name: 获取上一个版本的zip |
|
|
|
|
|
pull: if-not-exists |
|
|
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/qmiot/init:apisix-init-base |
|
|
|
|
|
|
|
|
- name: 编译 |
|
|
- name: 编译 |
|
|
pull: if-not-exists |
|
|
pull: if-not-exists |
|
|
@ -73,7 +76,7 @@ steps: |
|
|
|
|
|
|
|
|
# zip打包 |
|
|
# zip打包 |
|
|
- zip_name=$DRONE_REPO_NAME.$(cat .tags).zip |
|
|
- zip_name=$DRONE_REPO_NAME.$(cat .tags).zip |
|
|
- cd ./Sources |
|
|
|
|
|
|
|
|
- cd ./IOTContainer |
|
|
- zip -q -r $zip_name ./ |
|
|
- zip -q -r $zip_name ./ |
|
|
- ls $zip_name |
|
|
- ls $zip_name |
|
|
- ls |
|
|
- ls |
|
|
@ -101,11 +104,11 @@ steps: |
|
|
- export sourceId="8" # 应用来源id(默认为8 即测试环境专用) //如需更改查看测试环境平台级下应用管理新增应用的/api/platform/v1/platformProgram/platformProgramAdd接口 |
|
|
- export sourceId="8" # 应用来源id(默认为8 即测试环境专用) //如需更改查看测试环境平台级下应用管理新增应用的/api/platform/v1/platformProgram/platformProgramAdd接口 |
|
|
- export genre="localpack" # 应用类型 本地资源包 [outchain, localpack] |
|
|
- export genre="localpack" # 应用类型 本地资源包 [outchain, localpack] |
|
|
- export resolution="2160*3840竖屏" # 分辨率(自行填写)[1080*1920竖屏, 1920*1080横屏, 3840*2160横屏, 2160*3840竖屏] |
|
|
- export resolution="2160*3840竖屏" # 分辨率(自行填写)[1080*1920竖屏, 1920*1080横屏, 3840*2160横屏, 2160*3840竖屏] |
|
|
- export package="/drone/src/target/Sources/Setup.exe" # 包名称 |
|
|
|
|
|
|
|
|
- export package="/drone/src/Sources/Setup.exe" # 包名称 |
|
|
- export des=$CI_COMMIT_MESSAGE # 应用描述 |
|
|
- export des=$CI_COMMIT_MESSAGE # 应用描述 |
|
|
- python3 iot_upload.py |
|
|
- python3 iot_upload.py |
|
|
|
|
|
|
|
|
- export package="$DRONE_REPO_NAME.$(cat .tags).zip" # 包名称 |
|
|
|
|
|
|
|
|
- export package="/drone/src/IOTContainer/$DRONE_REPO_NAME.$(cat .tags).zip" # 包名称 |
|
|
- python3 iot_upload.py |
|
|
- python3 iot_upload.py |
|
|
|
|
|
|
|
|
when: |
|
|
when: |
|
|
|