diff --git a/.drone.yml b/.drone.yml index a50f3c0..74de3cd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,10 +14,15 @@ steps: - pip install ./dist/bstools*.whl - cd ../ - 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: WEBMENTIONSIO_API_KEY: from_secret: WEBMENTIONSIO_API_KEY + SSH_KEY: + from_secret:gitea_ssh_key # - name: store_webmentions # image: appleboy/drone-git-push