Update forgejo mkdocs cicd docu
All checks were successful
build / build (push) Successful in 41s
build / deploy (push) Successful in 14s

This commit is contained in:
Jarkko Toivanen 2025-01-25 03:10:15 +02:00
parent b7ef6c7e00
commit c1317d7292

View file

@ -3,6 +3,15 @@
!!! TODO !!! TODO
This documentation might not be complete This documentation might not be complete
!!! INFO
There are plenty of things you need
to customize accordingly like hosts and
usernames and preferred directories.
## Server side of things
``` console ``` console
Install required stuff and things on Debian based system Install required stuff and things on Debian based system
$ sudo apt-get install rsync $ sudo apt-get install rsync
@ -30,6 +39,8 @@ give us permission to get connected via ssh (might not be needed)
Change it afterwards using `sudo usermod -s /Sbin/HELL verkkojuuri` Change it afterwards using `sudo usermod -s /Sbin/HELL verkkojuuri`
## Forgejo side of things
Then you just like build and like rsync the files Then you just like build and like rsync the files
using a forgejo action runner passing it the relevant using a forgejo action runner passing it the relevant
secrets. In practise you'll make it execute secrets. In practise you'll make it execute
@ -39,6 +50,18 @@ $ mkdocs build
$ rsync -e "ssh -rclthv --exclude --delete-after .git site/ verkkojuuri@jakest.us:site $ rsync -e "ssh -rclthv --exclude --delete-after .git site/ verkkojuuri@jakest.us:site
``` ```
Oh you need it more detailed, okay.
1. Set *secret* `SSH_PRIVATE_KEY` to have non-password-protected ssh private key
(you should have done that in previousu steps).
2. Set following *variables*
- `SSH_USER`: verkkojuuri
- `SSH_HOST`: jakest.us
- `SSH_PATH`: site
3. Setup the action itself (refer to workflow actions in
[my repo](https://git.jakest.us/jt/saitti/)
perhaps)
4. Enjoy
And well yeah serve them files with Apache or whatever. And well yeah serve them files with Apache or whatever.