I am currently struggling with using the gh-pages plugin. I am using Gitea for the source code for my Hugo site, it builds without an issue, but when it comes to using gh-pages plugin it wont push the updated site contents to it.
The error I get is:
Load key "/root/.ssh/id_rsa": invalid format email@example.com: Permission denied (publickey). fatal: Could not read from remote repository.
Here is my pipeline:
kind: pipeline type: docker name: publish_blog trigger: branch: - main event: - push steps: - name: Build image: plugins/hugo settings: validate: true - name: Publish image: plugins/gh-pages settings: pages_directory: public upstream_name: firstname.lastname@example.org:owenmurr/owenmurr.github.io.git target_branch: main ssh_key: from_secret: ssh
I have added the ssh secret using cli using the following command:
drone secret update --repository owenmurr/blogsource --name ssh --data ~/.ssh/id_rsa
I have also added the secret in via the GUI aswell.
Is there anything I am missing?