Merge pull request #2442 from crazy-max/ci-fix-validate-matrix

ci(validate): fix GOLANGCI_LINT_MULTIPLATFORM type for multiplatform lint
This commit is contained in:
CrazyMax 2024-05-02 14:58:55 +02:00 committed by GitHub
commit d4f088e689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ variable "DESTDIR" {
default = "./bin"
}
variable "GOLANGCI_LINT_MULTIPLATFORM" {
default = null
default = ""
}
# Special target: https://github.com/docker/metadata-action#bake-definition
@ -35,7 +35,7 @@ target "lint" {
inherits = ["_common"]
dockerfile = "./hack/dockerfiles/lint.Dockerfile"
output = ["type=cacheonly"]
platforms = GOLANGCI_LINT_MULTIPLATFORM != null ? [
platforms = GOLANGCI_LINT_MULTIPLATFORM != "" ? [
"darwin/amd64",
"darwin/arm64",
"linux/amd64",