mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-25 21:29:14 +02:00
improvements
This commit is contained in:
parent
5de81fbaac
commit
2ce8589587
@ -98,9 +98,8 @@ func handle(err error) error {
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
skip, ok := err.(pipeline.ErrSkip)
|
||||
if ok {
|
||||
log.WithField("reason", skip.Error()).Warn("skipped")
|
||||
if pipeline.IsSkip(err) {
|
||||
log.WithField("reason", err.Error()).Warn("skipped")
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
|
@ -68,6 +68,7 @@ func doRun(ctx *context.Context, folder string, docker config.Docker, binary con
|
||||
if err := dockerBuild(root, image); err != nil {
|
||||
return err
|
||||
}
|
||||
// TODO: improve this so it can log into to stdout
|
||||
if !ctx.Publish {
|
||||
return pipeline.Skip("--skip-publish is set")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user