mirror of
				https://github.com/docker/setup-buildx-action.git
				synced 2025-11-04 06:34:19 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HCL
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HCL
		
	
	
	
	
	
variable "NODE_VERSION" {
 | 
						|
  default = "12"
 | 
						|
}
 | 
						|
 | 
						|
target "node-version" {
 | 
						|
  args = {
 | 
						|
    NODE_VERSION = NODE_VERSION
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
group "default" {
 | 
						|
  targets = ["build"]
 | 
						|
}
 | 
						|
 | 
						|
group "pre-checkin" {
 | 
						|
  targets = ["vendor-update", "format", "build"]
 | 
						|
}
 | 
						|
 | 
						|
group "validate" {
 | 
						|
  targets = ["format-validate", "build-validate", "vendor-validate"]
 | 
						|
}
 | 
						|
 | 
						|
target "build" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "build-update"
 | 
						|
  output = ["."]
 | 
						|
}
 | 
						|
 | 
						|
target "build-validate" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "build-validate"
 | 
						|
  output = ["type=cacheonly"]
 | 
						|
}
 | 
						|
 | 
						|
target "format" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "format-update"
 | 
						|
  output = ["."]
 | 
						|
}
 | 
						|
 | 
						|
target "format-validate" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "format-validate"
 | 
						|
  output = ["type=cacheonly"]
 | 
						|
}
 | 
						|
 | 
						|
target "vendor-update" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "vendor-update"
 | 
						|
  output = ["."]
 | 
						|
}
 | 
						|
 | 
						|
target "vendor-validate" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "vendor-validate"
 | 
						|
  output = ["type=cacheonly"]
 | 
						|
}
 | 
						|
 | 
						|
target "test" {
 | 
						|
  inherits = ["node-version"]
 | 
						|
  dockerfile = "./hack/build.Dockerfile"
 | 
						|
  target = "test-coverage"
 | 
						|
  output = ["./coverage"]
 | 
						|
}
 |