add ssh settings to git push

This commit is contained in:
James Ravenscroft 2022-08-07 09:57:51 +01:00
parent b8b728bd7d
commit 59ccae9d2f
1 changed files with 6 additions and 1 deletions

View File

@ -14,10 +14,15 @@ 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
- (git commit -a -m "Updating latest webmentions" && git push) || exit 0 - git remote add origin ssh://git@git.jamesravey.me:222/ravenscroftj/brainsteam.co.uk.git
- echo "$SSH_KEY" > $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
environment: environment:
WEBMENTIONSIO_API_KEY: WEBMENTIONSIO_API_KEY:
from_secret: WEBMENTIONSIO_API_KEY from_secret: WEBMENTIONSIO_API_KEY
SSH_KEY:
from_secret:gitea_ssh_key
# - name: store_webmentions # - name: store_webmentions
# image: appleboy/drone-git-push # image: appleboy/drone-git-push