Skip to content

Commit

Permalink
Fix context/dockerfile paths when running commands from different fol…
Browse files Browse the repository at this point in the history
…ders (#974)

Signed-off-by: Pablo Chico de Guzman <pchico83@gmail.com>
  • Loading branch information
pchico83 committed Jul 13, 2020
1 parent ff12035 commit 23ab68e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/model/dev.go
Expand Up @@ -230,6 +230,10 @@ func Get(devPath string) (*Dev, error) {
return nil, err
}
dev.DevPath = filepath.Base(devPath)
dev.Build.Context = filepath.Join(dev.DevDir, dev.Build.Context)
dev.Build.Dockerfile = filepath.Join(dev.DevDir, dev.Build.Dockerfile)
dev.Push.Context = filepath.Join(dev.DevDir, dev.Push.Context)
dev.Push.Dockerfile = filepath.Join(dev.DevDir, dev.Push.Dockerfile)

return dev, nil
}
Expand Down

0 comments on commit 23ab68e

Please sign in to comment.