mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-20 03:59:26 +02:00
fix: improve docker logs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
d246b1b608
commit
9333f80ad4
@ -142,13 +142,15 @@ func process(ctx *context.Context, docker config.Docker, artifacts []*artifact.A
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create temporary dir: %w", err)
|
||||
}
|
||||
log.Debug("tempdir: " + tmp)
|
||||
|
||||
images, err := processImageTemplates(ctx, docker)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
log := log.WithField("image", images[0])
|
||||
log.Debug("tempdir: " + tmp)
|
||||
|
||||
if err := os.Link(docker.Dockerfile, filepath.Join(tmp, "Dockerfile")); err != nil {
|
||||
return fmt.Errorf("failed to link dockerfile: %w", err)
|
||||
}
|
||||
@ -171,6 +173,7 @@ func process(ctx *context.Context, docker config.Docker, artifacts []*artifact.A
|
||||
return err
|
||||
}
|
||||
|
||||
log.Info("building docker image")
|
||||
if err := imagers[docker.Use].Build(ctx, tmp, images, buildFlags); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user