7
0
Fork 1
forked from Skynet/deploy_user
Template repo to allow users to easily deploy to their hugo site on Skynet
Find a file Use this template
2025-02-09 21:28:04 +00:00
.forgejo/workflows feat: now runs on docker not baremetal nix 2024-09-23 22:32:13 +01:00
resources doc: added readme and rough overview 2024-09-22 23:12:24 +01:00
src feat: base files for the repo 2024-09-22 23:07:55 +01:00
.gitattributes feat: base files for the repo 2024-09-22 23:07:55 +01:00
.gitignore feat: base files for the repo 2024-09-22 23:07:55 +01:00
LICENSE feat: add license 2024-09-23 20:07:54 +00:00
README.md doc: updated teh documentation to capture the previous pitfalls 2025-02-09 21:28:04 +00:00

Deploying to Skynet

This is a repo that is used as a template to deploy to Skynet

Create SSH Key

Details to do this can be found here: wiki
It is recommended to create a new key for just Forgejo Actions.
Do not add a password to the key, it will cause the pipeline to fail.

Add key to Skynet account

Add the contents of $USERNAME.pub (public key) to your skynet account
[CTRL]+[A] and [CTRL]+[V] will copy/paste everything.
The key must remain in its "armor" and the trailing newline at the end must be preserved.

Secrets

One secret must be added to make this work.

Secrets are found in your repo under Settings > Actions > Secrets

  • SSH_KEY
    • This is your private key that was generated above
    • Copy paste it exactly

End result should look like this:
Secrets

Make changes to src

Make changes to the files in src.
Commit and push.
If everything was set up fine then your site will soon be live on https://$USERNAME.users.skynet.ie