actions: runner [container].docker_host variations

* automount
* "" or "-"
* unix:///var/run/docker.sock
* tcp://127.0.0.1:2375
This commit is contained in:
Earl Warren 2024-11-27 01:21:38 +00:00
parent 801c760a4e
commit 33749f5a5e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
16 changed files with 158 additions and 0 deletions

View file

@ -0,0 +1,9 @@
on: [push]
jobs:
build:
runs-on: docker
container:
image: code.forgejo.org/oci/node:20-bookworm
steps:
- run: "test -e /var/run/docker.sock"

View file

@ -0,0 +1,30 @@
log:
level: debug
runner:
file: .runner
capacity: 1
env_file: .env
timeout: 3h
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels: ["docker:docker://code.forgejo.org/oci/node:20-bookworm"]
cache:
enabled: true
dir: "/srv/example/cache"
host: ""
port: 0
container:
network: "bridge"
privileged: false
options:
workdir_parent:
valid_volumes: ["/srv/example"]
docker_host: "unix:///var/run/docker.sock"
host:
workdir_parent:

View file

@ -0,0 +1 @@
FORGEJO_RUNNER_CONFIG=$EXAMPLE_DIR/runner-config.yaml forgejo-runner.sh reload

View file

@ -0,0 +1 @@
forgejo-runner.sh reload