mirror of https://github.com/Mai-with-u/MaiBot.git
调整CI
parent
76055792af
commit
b82cae06f7
|
|
@ -13,10 +13,12 @@ initialize-maibot-git-repo:
|
||||||
paths:
|
paths:
|
||||||
- target-repo/
|
- target-repo/
|
||||||
script:
|
script:
|
||||||
- rm -r target-repo || echo "`target-repo/` not found. Skipped."
|
- git clone https://github.com/MaiM-with-u/MaiBot.git target-repo/
|
||||||
- git reset --hard $(git describe --tags --abbrev=0)
|
- cd target-repo/
|
||||||
- cp -r . /tmp/target-repo
|
- export MAIBOT_VERSION=$(git describe --tags --abbrev=0)
|
||||||
- mv /tmp/target-repo ./target-repo
|
- echo "Current version is `${MAIBOT_VERSION}`"
|
||||||
|
- git reset --hard ${MAIBOT_VERSION}
|
||||||
|
- echo ${MAIBOT_VERSION} > MAIBOT_VERSION
|
||||||
|
|
||||||
# 构建最后一个tag的麦麦本体的镜像
|
# 构建最后一个tag的麦麦本体的镜像
|
||||||
build-core:
|
build-core:
|
||||||
|
|
@ -29,7 +31,8 @@ build-core:
|
||||||
- target-repo/
|
- target-repo/
|
||||||
script:
|
script:
|
||||||
- cd target-repo/
|
- cd target-repo/
|
||||||
- export BUILD_DESTINATION="reg.mikumikumi.xyz/maibot/maibot:$(git describe --tags --abbrev=0)"
|
- export BUILD_DESTINATION="reg.mikumikumi.xyz/maibot/maibot:$(cat MAIBOT_VERSION)"
|
||||||
|
- git clone https://github.com/MaiM-with-u/MaiMBot-LPMM.git MaiMBot-LPMM
|
||||||
- build
|
- build
|
||||||
- rm -rf target-repo/* target-repo/.*
|
- rm -rf target-repo/* target-repo/.*
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue