mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:03:22 +00:00
hooked up websockets to stream output
This commit is contained in:
@@ -354,7 +354,7 @@ func (b *Builder) run() error {
|
||||
b.BuildState.Finished = time.Now().UTC().Unix()
|
||||
|
||||
// get the exit code if possible
|
||||
b.BuildState.ExitCode = wait.StatusCode //b.container.State.ExitCode
|
||||
b.BuildState.ExitCode = wait.StatusCode
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -404,6 +404,7 @@ func (b *Builder) writeDockerfile(dir string) error {
|
||||
dockerfile.WriteEnv("GOPATH", "/var/cache/drone")
|
||||
dockerfile.WriteAdd("id_rsa", "/root/.ssh/id_rsa")
|
||||
dockerfile.WriteRun("chmod 600 /root/.ssh/id_rsa")
|
||||
dockerfile.WriteRun("echo 'StrictHostKeyChecking no' > /root/.ssh/config")
|
||||
}
|
||||
|
||||
dockerfile.WriteAdd("proxy.sh", "/etc/drone.d/")
|
||||
|
Reference in New Issue
Block a user