mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Privileged containers for docker builds
This commit is contained in:
@@ -102,6 +102,9 @@ func Pod(namespace string, step *backend.Step) *v1.Pod {
|
||||
Env: envs,
|
||||
VolumeMounts: volMounts,
|
||||
Resources: resources,
|
||||
SecurityContext: &v1.SecurityContext{
|
||||
Privileged: &step.Privileged,
|
||||
},
|
||||
}},
|
||||
ImagePullSecrets: []v1.LocalObjectReference{{Name: "regcred"}},
|
||||
Volumes: vols,
|
||||
|
||||
Reference in New Issue
Block a user