1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-25 21:29:14 +02:00

improvements

This commit is contained in:
Carlos Alexandro Becker 2017-09-11 23:59:43 -03:00
parent 5de81fbaac
commit 2ce8589587
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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")
}