gitea-runner: create configmap for custom config, enable host networking within dind
This commit is contained in:
@@ -26,6 +26,8 @@ spec:
|
||||
image: gitea/act_runner:nightly
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: CONFIG_FILE
|
||||
value: /config/config.yaml
|
||||
- name: DOCKER_HOST
|
||||
value: tcp://localhost:2376
|
||||
- name: DOCKER_CERT_PATH
|
||||
@@ -42,6 +44,8 @@ spec:
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- name: runner-config
|
||||
mountPath: /config
|
||||
- name: docker-certs
|
||||
mountPath: /certs
|
||||
- name: runner-data
|
||||
@@ -65,6 +69,9 @@ spec:
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: docker-certs
|
||||
- name: runner-config
|
||||
configMap:
|
||||
name: runner-config
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: runner-data
|
||||
|
||||
Reference in New Issue
Block a user