Record docker build output in database

This commit is contained in:
2023-02-24 23:00:10 -07:00
parent b475631df6
commit 6fee5aa268
3 changed files with 20 additions and 1 deletions
+6 -1
View File
@@ -146,7 +146,12 @@ func ExecutePipeline(pe PipelineExecution, db database.Database, pipelineConf co
log.Errorf("could no read build response: %w", err)
return
}
log.Debugf("build log: %v", string(response))
err = db.UpdateRunBuildOutput(pe.Run.Id, string(response))
if err != nil {
log.Errorf("could not update build output for run: %w", err)
return
}
err = buildResponse.Body.Close()
if err != nil {