configs/forgejo/runner
sneakers-the-rat 3738d84250
All checks were successful
/ test (push) Successful in 1s
/ test2 (push) Successful in 1s
pages volume
2024-06-29 01:52:31 -07:00
..
config.yaml pages volume 2024-06-29 01:52:31 -07:00
docker-compose.yaml pages volume 2024-06-29 01:52:31 -07:00
readme.md run runner 2024-06-29 00:15:39 -07:00

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