configs/forgejo/runner/readme.md
2024-06-29 00:15:39 -07:00

923 B

Forgejo runner

https://forgejo.org/docs/next/admin/actions/

Prep

Make user: forgejo-runner

Make data directory within /home/forgejo-runner

set -e

mkdir -p data
touch data/.runner
mkdir -p data/.cache

chown -R 1001:1001 data/.runner
chown -R 1001:1001 data/.cache
chmod 775 data/.runner
chmod 775 data/.cache
chmod g+s data/.runner
chmod g+s data/.cache

Config

.runner

After registering the runner, use one of these images: https://github.com/catthehacker/docker_images/pkgs/container/ubuntu

eg, in .runner:

{
  
  "id": 1,
  "uuid": "d772eb34-e677-4cfe-81a2-f0adcf038375",
  "name": "jonny-runner",
  "token": "...",
  "address": "https://git.jon-e.net",
  "labels": [
    "docker:docker://node:16-bullseye",
    "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"
  ]
}

config.yaml

Use the one in this repo lol, symlink it into /home/forgejo-runner