mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
commit
0670a21441
@ -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 {
|
||||
if err := dockerTag(image, latest); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
ctx.AddDocker(image)
|
||||
return nil
|
||||
if !docker.Latest {
|
||||
return nil
|
||||
}
|
||||
if err := dockerTag(image, latest); err != nil {
|
||||
return err
|
||||
}
|
||||
return dockerPush(latest)
|
||||
}
|
||||
|
||||
func dockerBuild(root, dockerfile, image string) error {
|
||||
|
Loading…
x
Reference in New Issue
Block a user