1
0
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:
Carlos A Becker 2021-07-04 01:52:59 +00:00
parent d246b1b608
commit 9333f80ad4
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

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