Skip to content

Commit 7342985

Browse files
committed
bugfix: if publish not requested, don't run the publish commands of builders
1 parent 6ab5961 commit 7342985

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmd/bob/build.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,10 @@ func build(buildCtx *BuildContext) (*buildOutput, error) {
364364
return withErr(err) // err context ok
365365
}
366366

367-
if err := pass("publish", publishPass); err != nil {
368-
return withErr(err) // err context ok
367+
if buildCtx.PublishArtefacts {
368+
if err := pass("publish", publishPass); err != nil {
369+
return withErr(err) // err context ok
370+
}
369371
}
370372

371373
dockerLoginCache := newDockerRegistryLoginCache()

0 commit comments

Comments
 (0)