only push if successful build

This commit is contained in:
Daylin Morgan 2025-01-19 19:29:48 -06:00
parent 75fc07a29a
commit b2d7a3a70d
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -389,6 +389,7 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
if isCi(): if isCi():
reportResults(results) reportResults(results)
if outs.len > 0:
# TODO: push after build not at once? # TODO: push after build not at once?
var cmd = service var cmd = service
cmd.addArg "push" cmd.addArg "push"