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