Migrate Forgejo runner to Kubernetes with DinD #60
2 changed files with 3 additions and 3 deletions
Move DOCKER_HOST to runner config instead of workflow
Some checks failed
Build Container / build (push) Failing after 59s
Some checks failed
Build Container / build (push) Failing after 59s
The runner's container.env config sets environment variables in all job containers, so we don't need to specify DOCKER_HOST per-workflow. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
commit
c4b14c0b89
|
|
@ -16,9 +16,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: k8s
|
runs-on: k8s
|
||||||
env:
|
|
||||||
# For k8s runner with DinD sidecar, Docker is available via TCP
|
|
||||||
DOCKER_HOST: tcp://127.0.0.1:2375
|
|
||||||
steps:
|
steps:
|
||||||
- name: Parse tag
|
- name: Parse tag
|
||||||
id: parse
|
id: parse
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,6 @@ data:
|
||||||
network: "host"
|
network: "host"
|
||||||
# Connect to DinD sidecar via TCP (not socket)
|
# Connect to DinD sidecar via TCP (not socket)
|
||||||
docker_host: tcp://127.0.0.1:2375
|
docker_host: tcp://127.0.0.1:2375
|
||||||
|
# Set DOCKER_HOST in job containers so they can run docker commands
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://127.0.0.1:2375
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue