mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-22 07:07:32 -06:00
only push if successful build
This commit is contained in:
parent
75fc07a29a
commit
b2d7a3a70d
1 changed files with 11 additions and 10 deletions
|
@ -389,16 +389,17 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
|
||||||
if isCi():
|
if isCi():
|
||||||
reportResults(results)
|
reportResults(results)
|
||||||
|
|
||||||
# TODO: push after build not at once?
|
if outs.len > 0:
|
||||||
var cmd = service
|
# TODO: push after build not at once?
|
||||||
cmd.addArg "push"
|
var cmd = service
|
||||||
cmd.addArg name
|
cmd.addArg "push"
|
||||||
cmd.addArg "--jobs"
|
cmd.addArg name
|
||||||
cmd.addArg $jobs
|
cmd.addArg "--jobs"
|
||||||
cmd.addArgs outs
|
cmd.addArg $jobs
|
||||||
let pushErr = runCmd(cmd)
|
cmd.addArgs outs
|
||||||
if pushErr != 0:
|
let pushErr = runCmd(cmd)
|
||||||
errorQuit "failed to push build to cache"
|
if pushErr != 0:
|
||||||
|
errorQuit "failed to push build to cache"
|
||||||
|
|
||||||
proc getUpdatedLockFile() =
|
proc getUpdatedLockFile() =
|
||||||
info "getting updated flake.lock as updated.lock"
|
info "getting updated flake.lock as updated.lock"
|
||||||
|
|
Loading…
Reference in a new issue