2024-09-22 23:12:24 +01:00
|
|
|
# Deploying to Skynet
|
|
|
|
This is a repo that is used as a template to deploy to Skynet
|
|
|
|
|
2025-02-12 15:22:27 +00:00
|
|
|
## Create a Skynet Account
|
|
|
|
To be able to have a website on Skynet you must first have a Skynet account.
|
|
|
|
[Instructions on how to create a Skynet Account](https://wiki.skynet.ie/tutorials/skynet/create_account)
|
2024-09-22 23:12:24 +01:00
|
|
|
|
|
|
|
## Create SSH Key
|
|
|
|
Details to do this can be found here: [wiki](https://wiki.skynet.ie/tutorials/skynet/create_ssh/)
|
2025-02-09 21:28:04 +00:00
|
|
|
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.
|
2024-09-22 23:12:24 +01:00
|
|
|
|
2025-02-09 21:28:04 +00:00
|
|
|
### Add key to Skynet account
|
|
|
|
Add the contents of ``$USERNAME.pub`` (public key) to [your skynet account](https://account.skynet.ie/modify_ssh)
|
|
|
|
``[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.
|
2024-09-27 22:52:18 +01:00
|
|
|
|
2024-09-22 23:12:24 +01:00
|
|
|
## Secrets
|
2024-09-22 23:51:02 +01:00
|
|
|
One secret must be added to make this work.
|
2024-09-22 23:12:24 +01:00
|
|
|
|
|
|
|
Secrets are found in your repo under ``Settings > Actions > Secrets``
|
|
|
|
|
|
|
|
* SSH_KEY
|
|
|
|
* This is your private key that was generated above
|
2025-02-09 21:28:04 +00:00
|
|
|
* Copy paste it exactly
|
2024-09-22 23:12:24 +01:00
|
|
|
|
|
|
|
End result should look like this:
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
## 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``
|