mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
5302241995
vendor validation
60 lines
938 B
HCL
60 lines
938 B
HCL
variable "GO_VERSION" {
|
|
default = "1.18.5"
|
|
}
|
|
|
|
# Defines the output folder
|
|
variable "DESTDIR" {
|
|
default = ""
|
|
}
|
|
function "bindir" {
|
|
params = [defaultdir]
|
|
result = DESTDIR != "" ? DESTDIR : "./bin/${defaultdir}"
|
|
}
|
|
|
|
target "_common" {
|
|
args = {
|
|
GO_VERSION = GO_VERSION
|
|
}
|
|
}
|
|
|
|
group "default" {
|
|
targets = ["binaries"]
|
|
}
|
|
|
|
group "validate" {
|
|
targets = ["vendor-validate"]
|
|
}
|
|
|
|
target "vendor-validate" {
|
|
target = "vendor-validate"
|
|
output = ["type=cacheonly"]
|
|
}
|
|
|
|
target "vendor" {
|
|
target = "vendor-update"
|
|
output = ["."]
|
|
}
|
|
|
|
target "test" {
|
|
inherits = ["_common"]
|
|
target = "test-coverage"
|
|
output = [bindir("coverage")]
|
|
}
|
|
|
|
target "binaries" {
|
|
inherits = ["_common"]
|
|
target = "binaries"
|
|
output = [bindir("build")]
|
|
platforms = [
|
|
"darwin/amd64",
|
|
"darwin/arm64",
|
|
"linux/amd64",
|
|
"linux/arm64",
|
|
"linux/arm/v7",
|
|
"linux/arm/v6",
|
|
"linux/ppc64le",
|
|
"linux/s390x",
|
|
"windows/amd64"
|
|
]
|
|
}
|