mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-11-08 22:43:33 -05:00
e33a6489fd
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
61 lines
1,011 B
HCL
61 lines
1,011 B
HCL
variable "GITHUB_REPOSITORY" {
|
|
default = "crazy-max/ghaction-import-gpg"
|
|
}
|
|
|
|
group "default" {
|
|
targets = ["build"]
|
|
}
|
|
|
|
group "pre-checkin" {
|
|
targets = ["update-yarn", "format", "build"]
|
|
}
|
|
|
|
group "validate" {
|
|
targets = ["validate-format", "validate-build", "validate-yarn"]
|
|
}
|
|
|
|
target "dockerfile" {
|
|
dockerfile = "Dockerfile.dev"
|
|
}
|
|
|
|
target "update-yarn" {
|
|
inherits = ["dockerfile"]
|
|
target = "update-yarn"
|
|
output = ["."]
|
|
}
|
|
|
|
target "build" {
|
|
inherits = ["dockerfile"]
|
|
target = "dist"
|
|
output = ["."]
|
|
}
|
|
|
|
target "test" {
|
|
args = {
|
|
GITHUB_REPOSITORY = "${GITHUB_REPOSITORY}"
|
|
}
|
|
inherits = ["dockerfile"]
|
|
target = "test-coverage"
|
|
output = ["."]
|
|
}
|
|
|
|
target "format" {
|
|
inherits = ["dockerfile"]
|
|
target = "format"
|
|
output = ["."]
|
|
}
|
|
|
|
target "validate-format" {
|
|
inherits = ["dockerfile"]
|
|
target = "validate-format"
|
|
}
|
|
|
|
target "validate-build" {
|
|
inherits = ["dockerfile"]
|
|
target = "validate-build"
|
|
}
|
|
|
|
target "validate-yarn" {
|
|
inherits = ["dockerfile"]
|
|
target = "validate-yarn"
|
|
}
|