mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
support for container option: --hostname (#809)
This commit is contained in:
parent
cbcc52c438
commit
0e52836daf
4 changed files with 50 additions and 0 deletions
|
@ -52,6 +52,7 @@ type NewContainerInput struct {
|
|||
Privileged bool
|
||||
UsernsMode string
|
||||
Platform string
|
||||
Hostname string
|
||||
}
|
||||
|
||||
// FileEntry is a file to copy to a container
|
||||
|
@ -302,6 +303,7 @@ func (cr *containerReference) create(capAdd []string, capDrop []string) common.E
|
|||
WorkingDir: input.WorkingDir,
|
||||
Env: input.Env,
|
||||
Tty: isTerminal,
|
||||
Hostname: input.Hostname,
|
||||
}
|
||||
|
||||
mounts := make([]mount.Mount, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue