From 59ccae9d2fcd56dadaa130ec9e02bce62eebd887 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Sun, 7 Aug 2022 09:57:51 +0100 Subject: [PATCH] add ssh settings to git push --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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