1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-11 17:50:58 +00:00

fix file permission for non root user docker image (#334)

This commit is contained in:
watiko 2020-08-09 05:31:26 +09:00 committed by GitHub
parent 148d159f73
commit 7f17e0a9f4
4 changed files with 14 additions and 3 deletions

View file

@ -129,7 +129,7 @@ func (sc *StepContext) setupShellCommand() common.Executor {
sc.Cmd = strings.Fields(strings.Replace(step.ShellCommand(), "{0}", containerPath, 1))
return rc.JobContainer.Copy("/github/", &container.FileEntry{
Name: scriptName,
Mode: 755,
Mode: 0755,
Body: script.String(),
})(ctx)
}