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

feat: support more options of containers

This commit is contained in:
Jason Song 2022-11-18 16:09:51 +08:00 committed by Jason Song
parent 0921d4e865
commit 1d92791718
5 changed files with 11 additions and 2 deletions

View file

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