add ssh settings to git push
continuous-integration/drone/push Build is passing Details

This commit is contained in:
James Ravenscroft 2022-08-07 10:01:56 +01:00
parent a47d479399
commit 90fb2c4357
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ steps:
- pip install ./dist/bstools*.whl - pip install ./dist/bstools*.whl
- cd ../ - cd ../
- python -m bstools fetch-mentions --mentions-file ./brainsteam/data/mentions.json - python -m bstools fetch-mentions --mentions-file ./brainsteam/data/mentions.json
- mkdir -p $HOME/.ssh
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa - echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- chmod 600 $HOME/.ssh/id_rsa - chmod 600 $HOME/.ssh/id_rsa
- (git commit -a -m "Updating latest webmentions" && git push --set-upstream origin main) || exit 0 - (git commit -a -m "Updating latest webmentions" && git push --set-upstream origin main) || exit 0