allow runners to better build docker containers
This commit is contained in:
parent
81c506bcba
commit
822a9065b3
|
@ -11,6 +11,7 @@ data:
|
||||||
runner:
|
runner:
|
||||||
capacity: 1
|
capacity: 1
|
||||||
envs:
|
envs:
|
||||||
|
REPO_BASE_OVERRIDE: "https://git.strudelline.net"
|
||||||
DOCKER_REGISTRY: "git.strudelline.net"
|
DOCKER_REGISTRY: "git.strudelline.net"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
fetch_timeout: 5s
|
fetch_timeout: 5s
|
||||||
|
@ -20,9 +21,9 @@ data:
|
||||||
- "host:host"
|
- "host:host"
|
||||||
- "metal-linux:host"
|
- "metal-linux:host"
|
||||||
- "metal-docker:host"
|
- "metal-docker:host"
|
||||||
- "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:js-latest"
|
- "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"
|
||||||
- "ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:js-22.04"
|
- "ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04"
|
||||||
- "ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:js-20.04"
|
- "ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:act-20.04"
|
||||||
cache:
|
cache:
|
||||||
# Enable cache server to use actions/cache.
|
# Enable cache server to use actions/cache.
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -47,7 +48,7 @@ data:
|
||||||
# If it's empty, act_runner will create a network automatically.
|
# If it's empty, act_runner will create a network automatically.
|
||||||
network: ""
|
network: ""
|
||||||
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
||||||
privileged: false
|
privileged: true
|
||||||
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
|
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
|
||||||
options:
|
options:
|
||||||
# The parent directory of a job's working directory.
|
# The parent directory of a job's working directory.
|
||||||
|
|
|
@ -10,7 +10,7 @@ metadata:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
spec:
|
spec:
|
||||||
podManagementPolicy: OrderedReady
|
podManagementPolicy: OrderedReady
|
||||||
replicas: 4
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: gitea
|
app: gitea
|
||||||
|
@ -33,6 +33,8 @@ spec:
|
||||||
- name: gitea-runner-config
|
- name: gitea-runner-config
|
||||||
configMap:
|
configMap:
|
||||||
name: gitea-runner-config
|
name: gitea-runner-config
|
||||||
|
- name: docker-certs
|
||||||
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- image: jamesandariese/act_runner_node:latest
|
- image: jamesandariese/act_runner_node:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
@ -58,6 +60,10 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: gitea-runner-data
|
name: gitea-runner-data
|
||||||
|
subPath: data
|
||||||
|
- mountPath: /run
|
||||||
|
name: gitea-runner-data
|
||||||
|
subPath: run
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: gitea-runner-config
|
name: gitea-runner-config
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -74,8 +80,8 @@ spec:
|
||||||
name: gitea-runner-data
|
name: gitea-runner-data
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: local-path
|
storageClassName: nvme
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 200Gi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user