This commit is contained in:
pat-s 2024-10-02 01:49:03 +02:00
parent e8353ac0fa
commit 98450c4c44
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
2 changed files with 4 additions and 1 deletions

View file

@ -53,6 +53,8 @@ fi
unset CI_NETRC_USERNAME unset CI_NETRC_USERNAME
unset CI_NETRC_PASSWORD unset CI_NETRC_PASSWORD
unset CI_SCRIPT unset CI_SCRIPT
mkdir -p $CI_WORKSPACE
cd $CI_WORKSPACE
` `
// traceScript is a helper script that is added to the step script // traceScript is a helper script that is added to the step script

View file

@ -182,7 +182,8 @@ func podContainer(step *types.Step, podName, goos string, options BackendOptions
container := v1.Container{ container := v1.Container{
Name: podName, Name: podName,
Image: step.Image, Image: step.Image,
WorkingDir: step.WorkingDir, // WorkingDir: step.WorkingDir,
WorkingDir: "/woodpecker",
Ports: containerPorts(step.Ports), Ports: containerPorts(step.Ports),
SecurityContext: containerSecurityContext(options.SecurityContext, step.Privileged), SecurityContext: containerSecurityContext(options.SecurityContext, step.Privileged),
} }