mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	cache: enable gha cache backend if cache service v2 detected
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		@@ -266,5 +266,5 @@ func isActive(pb *controllerapi.CacheOptionsEntry) bool {
 | 
			
		||||
	if pb.Type != "gha" {
 | 
			
		||||
		return true
 | 
			
		||||
	}
 | 
			
		||||
	return pb.Attrs["token"] != "" && pb.Attrs["url"] != ""
 | 
			
		||||
	return pb.Attrs["token"] != "" && (pb.Attrs["url"] != "" || pb.Attrs["url_v2"] != "")
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user