added buildkitd sidecar to act runner
Some checks failed
build / build (push) Successful in 44s
Go Tests / go-tests (push) Failing after 1m4s

This commit is contained in:
Manuel Ganter 2025-10-24 14:23:33 +02:00
parent 4814d854ee
commit 979bec7d91
No known key found for this signature in database

View file

@ -163,15 +163,45 @@ func GetPodSpec(gitHubScope GitHubScopeDetails, bootstrapParams params.Bootstrap
Env: envs, Env: envs,
VolumeMounts: []corev1.VolumeMount{ VolumeMounts: []corev1.VolumeMount{
{ {
Name: "runner-dir", Name: "buildkitd-deamon",
MountPath: "/runner", MountPath: "/run/user/1000/buildkit",
},
},
},
{
Name: "buildkitd",
Image: "moby/buildkit:buildx-stable-1-rootless",
Args: []string{
"--allow-insecure-entitlement=network.host",
"--oci-worker-no-process-sandbox",
},
ImagePullPolicy: corev1.PullIfNotPresent,
ReadinessProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
Exec: &corev1.ExecAction{
Command: []string{
"buildctl",
"debug",
"workers",
},
},
},
FailureThreshold: 3,
PeriodSeconds: 10,
SuccessThreshold: 1,
TimeoutSeconds: 1,
},
VolumeMounts: []corev1.VolumeMount{
{
Name: "buildkitd-deamon",
MountPath: "/run/user/1000/buildkit",
}, },
}, },
}, },
}, },
Volumes: []corev1.Volume{ Volumes: []corev1.Volume{
{ {
Name: "runner-dir", Name: "buildkitd-deamon",
VolumeSource: corev1.VolumeSource{ VolumeSource: corev1.VolumeSource{
EmptyDir: &corev1.EmptyDirVolumeSource{}, EmptyDir: &corev1.EmptyDirVolumeSource{},
}, },