1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

Fix missed ValidVolumes for docker steps (#74)

Fixes https://gitea.com/gitea/act_runner/issues/277

Thanks @ChristopherHX for finding the cause of the bug.

Reviewed-on: https://gitea.com/gitea/act/pulls/74
Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-committed-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
Zettat123 2023-07-11 02:08:22 +00:00 committed by Jason Song
parent f2a296e887
commit a3c7e09958
2 changed files with 37 additions and 35 deletions

View file

@ -395,6 +395,7 @@ func newStepContainer(ctx context.Context, step step, image string, cmd []string
Platform: rc.Config.ContainerArchitecture,
Options: rc.Config.ContainerOptions,
AutoRemove: rc.Config.AutoRemove,
ValidVolumes: rc.Config.ValidVolumes,
})
return stepContainer
}

View file

@ -131,6 +131,7 @@ func (sd *stepDocker) newStepContainer(ctx context.Context, image string, cmd []
UsernsMode: rc.Config.UsernsMode,
Platform: rc.Config.ContainerArchitecture,
AutoRemove: rc.Config.AutoRemove,
ValidVolumes: rc.Config.ValidVolumes,
})
return stepContainer
}