1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-09-16 09:26:52 +02:00

Merge pull request #367 from goreleaser/pull-366

docker push latest
This commit is contained in:
Carlos Alexandro Becker
2017-09-22 09:57:07 -03:00
committed by GitHub

View File

@@ -80,7 +80,7 @@ func process(ctx *context.Context, folder string, docker config.Docker, binary c
}
}
// TODO: improve this so it can log into to stdout
// TODO: improve this so it can log it to stdout
if !ctx.Publish {
return pipeline.Skip("--skip-publish is set")
}
@@ -90,13 +90,14 @@ func process(ctx *context.Context, folder string, docker config.Docker, binary c
if err := dockerPush(image); err != nil {
return err
}
if docker.Latest {
ctx.AddDocker(image)
if !docker.Latest {
return nil
}
if err := dockerTag(image, latest); err != nil {
return err
}
}
ctx.AddDocker(image)
return nil
return dockerPush(latest)
}
func dockerBuild(root, dockerfile, image string) error {