fix(runner): point unit at /usr/local/sbin, gitignore bare .runner, fix step 5
- ExecStart path matches the actual install location (/usr/local/sbin) - .gitignore: bare '.runner' so the secret is ignored in any dir (was only runner/.runner) - step 5: register inside ~/forgejo-runner (subshell), fix stray cd that broke the later 'cp runner/...' paths; note how to relocate a misplaced .runner Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d02844366a
commit
2979816ac7
3 changed files with 20 additions and 10 deletions
|
|
@ -5,7 +5,7 @@
|
|||
# in the `docker` group) so host-execution jobs can run `docker build`.
|
||||
#
|
||||
# Install:
|
||||
# sudo install -m 0755 forgejo-runner /usr/local/bin/forgejo-runner # the binary
|
||||
# sudo install -m 0755 forgejo-runner /usr/local/sbin/forgejo-runner # the binary
|
||||
# mkdir -p ~/forgejo-runner && cp config.yml ~/forgejo-runner/
|
||||
# cd ~/forgejo-runner
|
||||
# forgejo-runner register --no-interactive \
|
||||
|
|
@ -39,7 +39,7 @@ SupplementaryGroups=docker
|
|||
WorkingDirectory=/home/joshbairstow/forgejo-runner
|
||||
Environment=HOME=/home/joshbairstow
|
||||
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
|
||||
ExecStart=/usr/local/bin/forgejo-runner daemon --config /home/joshbairstow/forgejo-runner/config.yml
|
||||
ExecStart=/usr/local/sbin/forgejo-runner daemon --config /home/joshbairstow/forgejo-runner/config.yml
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue