1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-25 21:29:14 +02:00

fixed docker version name when snapshots

This commit is contained in:
Carlos Alexandro Becker 2017-09-14 19:38:48 -03:00
parent 17e9e6ca0e
commit bf6b6fe9f8
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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")