Use image tags for cache instead of names

This commit is contained in:
Ettore Di Giacinto
2019-11-12 17:24:24 +01:00
parent b64cf677c6
commit 8c36580722

View File

@@ -251,8 +251,8 @@ func (cs *LuetCompiler) Compile(concurrency int, keepPermissions bool, p Compila
return nil, errors.Wrap(err, "While computing a solution for "+p.GetPackage().GetName()) return nil, errors.Wrap(err, "While computing a solution for "+p.GetPackage().GetName())
} }
buildImageHash := "luet/cache-" + nthsolution.Drop(depPack).AssertionHash() buildImageHash := "luet/cache:" + nthsolution.Order(depPack.GetFingerPrint()).Drop(depPack).AssertionHash()
currentPackageImageHash := "luet/cache-" + nthsolution.AssertionHash() currentPackageImageHash := "luet/cache:" + nthsolution.Order(depPack.GetFingerPrint()).AssertionHash()
Debug("("+p.GetPackage().GetName()+") Builder image name:", buildImageHash) Debug("("+p.GetPackage().GetName()+") Builder image name:", buildImageHash)
Debug("("+p.GetPackage().GetName()+") Package image name:", currentPackageImageHash) Debug("("+p.GetPackage().GetName()+") Package image name:", currentPackageImageHash)