Migrate Forgejo runner to Kubernetes with DinD #60
2 changed files with 11 additions and 8 deletions
Add docker mode to runner for containerized job execution
Some checks failed
Build Container / build (push) Failing after 39s
Some checks failed
Build Container / build (push) Failing after 39s
- Runner now supports both host and docker labels - docker label uses forgejo-runner:v2.1.0 image with Node.js + Docker CLI - Switch build workflow to docker mode for ratcheting test Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
commit
fcbc3b958e
|
|
@ -15,7 +15,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Parse tag
|
||||
id: parse
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
---
|
||||
# Forgejo Runner - host execution mode
|
||||
# Forgejo Runner - hybrid host/docker execution
|
||||
#
|
||||
# The runner daemon runs directly on indri and executes jobs on the host.
|
||||
# This avoids container networking complexity since it can reach Forgejo
|
||||
# at localhost:3001 directly.
|
||||
# The runner daemon runs directly on indri. Jobs can run either:
|
||||
# - On host (ubuntu-latest:host) - for builds needing host tools
|
||||
# - In Docker (docker:docker://...) - for containerized builds
|
||||
#
|
||||
# The docker mode uses our custom job execution image with Node.js and Docker CLI.
|
||||
|
||||
forgejo_runner_binary: /Users/erichblume/code/3rd/forgejo-runner/forgejo-runner
|
||||
forgejo_runner_data_dir: /Users/erichblume/.forgejo-runner
|
||||
|
|
@ -14,9 +16,10 @@ forgejo_runner_log_dir: /Users/erichblume/Library/Logs
|
|||
forgejo_runner_instance_url: "http://localhost:3001"
|
||||
forgejo_runner_name: "indri-host-runner"
|
||||
|
||||
# Labels format for host execution: label:host
|
||||
# Jobs run directly on the host, not in containers
|
||||
forgejo_runner_labels: "ubuntu-latest:host,ubuntu-22.04:host"
|
||||
# Labels: both host and docker modes
|
||||
# - ubuntu-latest:host - jobs run directly on host
|
||||
# - docker:docker://... - jobs run in container with Node.js + Docker CLI
|
||||
forgejo_runner_labels: "ubuntu-latest:host,docker:docker://registry.ops.eblu.me/blumeops/forgejo-runner:v2.1.0"
|
||||
|
||||
# Runner config
|
||||
forgejo_runner_capacity: 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue