This commit is contained in:
parent
4c0528dca7
commit
9022019811
15
.drone.yml
15
.drone.yml
@ -13,16 +13,21 @@ trigger:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
environment:
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
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
|
||||
- rm -f ./build/data
|
||||
- rm -f ./build/stm32-metapac
|
||||
- rm -rf ./build/data
|
||||
- rm -rf ./build/stm32-metapac
|
||||
- ./d download-all
|
||||
- cargo run --release --bin stm32-data-gen
|
||||
- cargo run --release --bin stm32-metapac-gen
|
||||
- export COMMIT_HASH=$(git rev-parse HEAD)
|
||||
- cd build/
|
||||
- git add data stm32-metapac
|
||||
- git 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' 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user