Commit d8468575 authored by Kamil Trzciński's avatar Kamil Trzciński 💬

Fix cacheDir

Conflicts:
	CHANGELOG.md
parent 297ee5be
Pipeline #108892 failed with stage
v 0.5.5
- Fix cache_dir handling
v 0.5.4
- Update go-dockerclient to fix problems with creating docker containers
......
......@@ -143,7 +143,7 @@ func (s *DockerExecutor) addCacheVolume(binds, volumesFrom *[]string, containerP
// use host-based cache
if cacheDir := helpers.StringOrDefault(s.Config.Docker.CacheDir, ""); cacheDir != "" {
hostPath := fmt.Sprintf("%s/%s/%x", s.Config.Docker.CacheDir, s.Build.ProjectUniqueName(), hash)
hostPath := fmt.Sprintf("%s/%s/%x", cacheDir, s.Build.ProjectUniqueName(), hash)
hostPath, err := filepath.Abs(hostPath)
if err != nil {
return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment