diff --git a/pipeline/docker/docker.go b/pipeline/docker/docker.go index a1343a336..cb9a84d3d 100644 --- a/pipeline/docker/docker.go +++ b/pipeline/docker/docker.go @@ -61,7 +61,7 @@ func (Pipe) Run(ctx *context.Context) error { func doRun(ctx *context.Context, folder string, docker config.Docker, binary context.Binary) error { var root = filepath.Join(ctx.Config.Dist, folder) var dockerfile = filepath.Join(root, filepath.Base(docker.Dockerfile)) - var image = fmt.Sprintf("%s:%s", docker.Image, ctx.Git.CurrentTag) + var image = fmt.Sprintf("%s:%s", docker.Image, ctx.Version) if err := os.Link(docker.Dockerfile, dockerfile); err != nil { return errors.Wrap(err, "failed to link dockerfile")