This commit is contained in:
parent
9ccd29294b
commit
6a0c5b0f9c
3 changed files with 21 additions and 3 deletions
|
@ -12,5 +12,5 @@ jobs:
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: mkdir -p /data/nycki.net/site
|
- run: mkdir -p /data/nycki.net/site
|
||||||
- run: cp site.conf /data/nycki.net/site.conf
|
- run: cp tools/site.conf /data/nycki.net/site.conf
|
||||||
- run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/
|
- run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/
|
||||||
|
|
18
tools/forgejo-runner.service
Normal file
18
tools/forgejo-runner.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Forgejo Runner
|
||||||
|
Documentation=https://forgejo.org/docs/latest/admin/actions/
|
||||||
|
After=docker.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=forgejo-runner daemon
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
|
||||||
|
# This user and working directory must already exist
|
||||||
|
User=nycki-forgejo
|
||||||
|
WorkingDirectory=/opt/nycki-forgejo
|
||||||
|
Restart=on-failure
|
||||||
|
TimeoutSec=0
|
||||||
|
RestartSec=10
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue