mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
chore: refactor GetBindsAndMounts to have a context.Context arg
This commit is contained in:
parent
159c6af0dd
commit
f392ec4caa
4 changed files with 6 additions and 6 deletions
|
@ -428,7 +428,7 @@ func newStepContainer(ctx context.Context, step step, image string, cmd, entrypo
|
|||
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_ARCH", container.RunnerArch(ctx)))
|
||||
envList = append(envList, fmt.Sprintf("%s=%s", "RUNNER_TEMP", "/tmp"))
|
||||
|
||||
binds, mounts, validVolumes := rc.GetBindsAndMounts()
|
||||
binds, mounts, validVolumes := rc.GetBindsAndMounts(ctx)
|
||||
networkMode := fmt.Sprintf("container:%s", rc.jobContainerName())
|
||||
if rc.IsHostEnv(ctx) {
|
||||
networkMode = "default"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue