i have brain damage
This commit is contained in:
@@ -164,15 +164,20 @@ spec:
|
|||||||
|
|
||||||
statefulset:
|
statefulset:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
# Provide a Docker daemon via DinD so docker-based actions (buildx, login, etc.) work
|
extraVolumes:
|
||||||
dind:
|
- name: docker-run
|
||||||
repository: docker
|
emptyDir: {}
|
||||||
tag: "27.5.1-dind"
|
|
||||||
pullPolicy: IfNotPresent
|
# 2) Mount that volume into BOTH containers in the pod:
|
||||||
# Uncomment to force legacy iptables on some kernels
|
extraVolumeMounts:
|
||||||
# extraEnvs:
|
# mount into the runner
|
||||||
# - name: DOCKER_IPTABLES_LEGACY
|
- name: docker-run
|
||||||
# value: "1"
|
mountPath: /var/run
|
||||||
|
container: act-runner
|
||||||
|
# mount into the DinD sidecar
|
||||||
|
- name: docker-run
|
||||||
|
mountPath: /var/run
|
||||||
|
container: dind
|
||||||
|
|
||||||
# Your custom runner config replicated here (labels, dind, volumes)
|
# Your custom runner config replicated here (labels, dind, volumes)
|
||||||
actRunner:
|
actRunner:
|
||||||
@@ -183,12 +188,11 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
runner:
|
runner:
|
||||||
labels:
|
labels:
|
||||||
- "ubuntu-latest:docker://docker.gitea.com/runner-images:ubuntu-latest"
|
- "ubuntu-latest:docker://harbor.yadunut.dev/gitea_cache/runner-images:ubuntu-latest"
|
||||||
- "ubuntu-22.04:docker://docker.gitea.com/runner-images:ubuntu-22.04"
|
- "ubuntu-22.04:docker://harbor.yadunut.dev/gitea_cache/runner-images:ubuntu-22.04"
|
||||||
- "ubuntu-20.04:docker://docker.gitea.com/runner-images:ubuntu-20.04"
|
- "ubuntu-20.04:docker://harbor.yadunut.dev/gitea_cache/runner-images:ubuntu-20.04"
|
||||||
container:
|
container:
|
||||||
# Ensure the runner and job containers use the DinD socket
|
options: |
|
||||||
docker_host: "unix:///var/run/docker.sock"
|
--add-host=docker:host-gateway
|
||||||
# Allow mounting the docker.sock into job containers
|
-e "DOCKER_HOST=tcp://dind:2376/"
|
||||||
valid_volumes:
|
-e "DOCKER_BUILDKIT=1"
|
||||||
- "/var/run/docker.sock"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user