mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
ci(validate): fix GOLANGCI_LINT_MULTIPLATFORM type for multiplatform lint
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
parent
1d88c4b169
commit
db3a8ad7ca
@ -8,7 +8,7 @@ variable "DESTDIR" {
|
|||||||
default = "./bin"
|
default = "./bin"
|
||||||
}
|
}
|
||||||
variable "GOLANGCI_LINT_MULTIPLATFORM" {
|
variable "GOLANGCI_LINT_MULTIPLATFORM" {
|
||||||
default = null
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
# Special target: https://github.com/docker/metadata-action#bake-definition
|
# Special target: https://github.com/docker/metadata-action#bake-definition
|
||||||
@ -35,7 +35,7 @@ target "lint" {
|
|||||||
inherits = ["_common"]
|
inherits = ["_common"]
|
||||||
dockerfile = "./hack/dockerfiles/lint.Dockerfile"
|
dockerfile = "./hack/dockerfiles/lint.Dockerfile"
|
||||||
output = ["type=cacheonly"]
|
output = ["type=cacheonly"]
|
||||||
platforms = GOLANGCI_LINT_MULTIPLATFORM != null ? [
|
platforms = GOLANGCI_LINT_MULTIPLATFORM != "" ? [
|
||||||
"darwin/amd64",
|
"darwin/amd64",
|
||||||
"darwin/arm64",
|
"darwin/arm64",
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user