mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 10:03:42 +08:00 
			
		
		
		
	full diff: https://github.com/moby/buildkit/compare/8e3fe35738c2...v0.13.0-rc2 Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
		
			
				
	
	
		
			74 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HCL
		
	
	
	
	
	
			
		
		
	
	
			74 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HCL
		
	
	
	
	
	
variable "GO_VERSION" {
 | 
						|
  default = null
 | 
						|
}
 | 
						|
 | 
						|
variable "DESTDIR" {
 | 
						|
  default = "./bin"
 | 
						|
}
 | 
						|
 | 
						|
group "default" {
 | 
						|
  targets = ["build"]
 | 
						|
}
 | 
						|
 | 
						|
target "build" {
 | 
						|
  args = {
 | 
						|
    GO_VERSION = "${GO_VERSION}"
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
group "test" {
 | 
						|
  targets = ["test-root", "test-noroot"]
 | 
						|
}
 | 
						|
 | 
						|
target "test-root" {
 | 
						|
  inherits = ["build"]
 | 
						|
  target = "test-coverage"
 | 
						|
  output = ["${DESTDIR}/coverage"]
 | 
						|
}
 | 
						|
 | 
						|
target "test-noroot" {
 | 
						|
  inherits = ["build"]
 | 
						|
  target = "test-noroot-coverage"
 | 
						|
  output = ["${DESTDIR}/coverage"]
 | 
						|
}
 | 
						|
 | 
						|
target "lint" {
 | 
						|
  dockerfile = "./hack/dockerfiles/lint.Dockerfile"
 | 
						|
  args = {
 | 
						|
    GO_VERSION = "${GO_VERSION}"
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
target "validate-gomod" {
 | 
						|
  dockerfile = "./hack/dockerfiles/gomod.Dockerfile"
 | 
						|
  target = "validate"
 | 
						|
  args = {
 | 
						|
    # go mod may produce different results between go versions,
 | 
						|
    # if this becomes a problem, this should be switched to use
 | 
						|
    # a fixed go version.
 | 
						|
    GO_VERSION = "${GO_VERSION}"
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
target "gomod" {
 | 
						|
  inherits = ["validate-gomod"]
 | 
						|
  output = ["."]
 | 
						|
  target = "update"
 | 
						|
}
 | 
						|
 | 
						|
target "validate-shfmt" {
 | 
						|
  dockerfile = "./hack/dockerfiles/shfmt.Dockerfile"
 | 
						|
  target = "validate"
 | 
						|
}
 | 
						|
 | 
						|
target "shfmt" {
 | 
						|
  inherits = ["validate-shfmt"]
 | 
						|
  output = ["."]
 | 
						|
  target = "update"
 | 
						|
}
 | 
						|
 | 
						|
target "cross" {
 | 
						|
  inherits = ["build"]
 | 
						|
  platforms = ["linux/amd64", "linux/386", "linux/arm64", "linux/arm", "linux/ppc64le", "linux/s390x", "darwin/amd64", "darwin/arm64", "windows/amd64", "windows/arm64", "freebsd/amd64", "freebsd/arm64"]
 | 
						|
}
 |