update drone ci
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
guangzong 2024-04-02 14:21:14 -04:00
parent 4c0528dca7
commit 9022019811
Signed by: guangzong
GPG Key ID: 095389BACAE97D19

View File

@ -13,16 +13,21 @@ trigger:
steps: steps:
- name: build - name: build
environment:
ssh_key:
from_secret: ssh_key
commands: commands:
- ./d download-all - echo $ssh_key > ~/.ssh/id_ed25519
- git clone --depth 1 ssh://gitea@git.ggeta.com:2002/guangzong/stm32-data-generated.git build -q - git clone --depth 1 ssh://gitea@git.ggeta.com:2002/guangzong/stm32-data-generated.git build -q
- rm -f ./build/data - rm -rf ./build/data
- rm -f ./build/stm32-metapac - rm -rf ./build/stm32-metapac
- ./d download-all
- cargo run --release --bin stm32-data-gen - cargo run --release --bin stm32-data-gen
- cargo run --release --bin stm32-metapac-gen - cargo run --release --bin stm32-metapac-gen
- export COMMIT_HASH=$(git rev-parse HEAD) - export COMMIT_HASH=$(git rev-parse HEAD)
- cd build/ - cd build/
- git add data stm32-metapac - git add data stm32-metapac
- git commit -m "Generated from stm32-data $COMMIT_HASH" - git -c user.name='Guangzong Chen - CI' -c user.email='chen@ggeta.com' commit -m "Generated from stm32-data $COMMIT_HASH"
- git tag - a stm32-data-$COMMIT -m "Generated from stm32-data $COMMIT_HASH" - git -c user.name='Guangzong Chen - CI' -c user.email='chen@ggeta.com' tag - a stm32-data-$COMMIT -m "Generated from stm32-data $COMMIT_HASH"
- git push --follow-tags - git push --follow-tags