Skip to content

Commit 0f6fc47

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 7620a75 + 505d91f commit 0f6fc47

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,22 @@ This project has support for continuous integration servers:
427427
- [TravisCI](https://travis-ci.org/) pipelines out of the box.
428428
- [Github actions](https://docs.github.com/en/free-pro-team@latest/actions). Config
429429

430-
You don't need to have all of them. So I recommend leave only 1. I would personally use droneci if I want it to be on my server. Or github actions for serverless.
430+
You don't need to have all of them. So I recommend leave only 1. I would pick github actions since it doesn't require any setup.
431+
432+
#### Github actions
433+
In order to setup continuous delivery via github:
434+
- Generate a new pair of ssh keys `mkdir /tmp/sshkey; ssh-keygen -t rsa -b 4096 -C "github actions" -f /tmp/sshkey/id_rsa`
435+
- Append content of `/tmp/sshkey/id_rsa.pub` to your server last line of file `~/.ssh/authorized_keys` where `~` is the home for ssh user to use ( I used `http`)
436+
- Create ssh variables at https://github.com/akoidan/pychat/settings/secrets/actions (where akoidan/pychat is your repo) :
437+
- `HOST` -ssh host (your domain)
438+
- `PORT` - ssh port (22)
439+
- `SSH_USER` - ssh user, if you used my setup it's `http`
440+
- `ID_RSA` - what ssh-keygen has generated in step above to`/tmp/sshkey/id_rsa`
441+
- I used alias to give http user to access tornado systemd service like in [this](https://serverfault.com/a/841104/304770) example. So append `/etc/sudoers` with
442+
```
443+
Cmnd_Alias RESTART_TORNADO = /usr/bin/systemctl restart tornado
444+
http ALL=(ALL) NOPASSWD: RESTART_TORNADO
445+
```
431446

432447
### Tips
433448

0 commit comments

Comments
 (0)