mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 20:31:10 +00:00
added tty flag
This commit is contained in:
parent
20693cd38d
commit
fc0d37f881
2 changed files with 2 additions and 1 deletions
|
@ -322,6 +322,7 @@ func (b *Builder) run() error {
|
||||||
AttachStdin: false,
|
AttachStdin: false,
|
||||||
AttachStdout: true,
|
AttachStdout: true,
|
||||||
AttachStderr: true,
|
AttachStderr: true,
|
||||||
|
Tty: script.DockerTty(b.Build.Docker),
|
||||||
}
|
}
|
||||||
|
|
||||||
// configure if Docker should run in privileged mode
|
// configure if Docker should run in privileged mode
|
||||||
|
|
|
@ -43,7 +43,7 @@ func DockerHostname(d *Docker) string {
|
||||||
|
|
||||||
// DockerTty returns true if the build
|
// DockerTty returns true if the build
|
||||||
// should allocate a pseudo tty
|
// should allocate a pseudo tty
|
||||||
func DockerTty(d *Docker) string {
|
func DockerTty(d *Docker) bool {
|
||||||
if d == nil {
|
if d == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue