mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-17 19:19:17 +00:00
for now,let's print the docker build
output to the console for debugging
This commit is contained in:
@@ -110,7 +110,7 @@ func (c *ImageService) Build(tag, dir string) error {
|
|||||||
v := url.Values{}
|
v := url.Values{}
|
||||||
v.Set("t", tag)
|
v.Set("t", tag)
|
||||||
v.Set("q", "1")
|
v.Set("q", "1")
|
||||||
//v.Set("rm", "1")
|
v.Set("rm", "1")
|
||||||
|
|
||||||
// url path
|
// url path
|
||||||
path := fmt.Sprintf("/build?%s", v.Encode())
|
path := fmt.Sprintf("/build?%s", v.Encode())
|
||||||
@@ -120,5 +120,5 @@ func (c *ImageService) Build(tag, dir string) error {
|
|||||||
headers.Set("Content-Type", "application/tar")
|
headers.Set("Content-Type", "application/tar")
|
||||||
|
|
||||||
// make the request
|
// make the request
|
||||||
return c.stream("POST", path, body, nil, headers)
|
return c.stream("POST", path, body, os.Stdout, headers)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user