Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-12-07 20:07:21 +01:00
Родитель ae3b0b34c8
Коммит ede32747b5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3248E46B6BB8C7F7
1 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,6 @@
variable "GO_VERSION" {
default = "1.16.11"
}
variable "VERSION" {
default = ""
}
@ -16,11 +19,19 @@ variable "COMPANY_NAME" {
default = ""
}
target "_common" {
args = {
GO_VERSION = GO_VERSION
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
}
}
group "default" {
targets = ["binary"]
}
target "binary" {
inherits = ["_common"]
target = "binary"
platforms = ["local"]
output = ["build"]
@ -40,6 +51,7 @@ target "dynbinary" {
}
target "plugins" {
inherits = ["_common"]
target = "plugins"
platforms = ["local"]
output = ["build"]
@ -67,12 +79,14 @@ target "plugins-cross" {
}
target "lint" {
inherits = ["_common"]
dockerfile = "./dockerfiles/Dockerfile.lint"
target = "lint"
output = ["type=cacheonly"]
}
target "shellcheck" {
inherits = ["_common"]
dockerfile = "./dockerfiles/Dockerfile.shellcheck"
target = "shellcheck"
output = ["type=cacheonly"]