mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 23:27:31 +00:00
bake can be inherited
This commit is contained in:
@@ -1,43 +1,30 @@
|
|||||||
variable "LOGIN_DIR" {
|
|
||||||
default = "./"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "DOCKERFILES_DIR" {
|
|
||||||
default = "dockerfiles/"
|
|
||||||
}
|
|
||||||
|
|
||||||
target "login-pnpm" {
|
target "login-pnpm" {
|
||||||
context = "${LOGIN_DIR}"
|
dockerfile = "./dockerfiles/login-pnpm.Dockerfile"
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-pnpm.Dockerfile"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-dev-base" {
|
target "login-dev-base" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-dev-base.Dockerfile"
|
dockerfile = "./dockerfiles/login-dev-base.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-lint" {
|
target "login-lint" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-lint.Dockerfile"
|
dockerfile = "./dockerfiles/login-lint.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-dev-base = "target:login-dev-base"
|
login-dev-base = "target:login-dev-base"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-test-unit" {
|
target "login-test-unit" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-test-unit.Dockerfile"
|
dockerfile = "./dockerfiles/login-test-unit.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-client = "target:login-client"
|
login-client = "target:login-client"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
target "login-client" {
|
target "login-client" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-client.Dockerfile"
|
dockerfile = "./dockerfiles/login-client.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
typescript-proto-client = "target:typescript-proto-client"
|
typescript-proto-client = "target:typescript-proto-client"
|
||||||
@@ -45,8 +32,7 @@ target "login-client" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "typescript-proto-client" {
|
target "typescript-proto-client" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}typescript-proto-client.Dockerfile"
|
dockerfile = "./dockerfiles/typescript-proto-client.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
# We directly generate and download the client server-side with buf, so we don't need the proto files
|
# We directly generate and download the client server-side with buf, so we don't need the proto files
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
@@ -57,8 +43,7 @@ target "typescript-proto-client" {
|
|||||||
# proto-files is only used to build core-mock against which the integration tests run.
|
# proto-files is only used to build core-mock against which the integration tests run.
|
||||||
# To build the proto-client, we use buf to generate and download the client code directly.
|
# To build the proto-client, we use buf to generate and download the client code directly.
|
||||||
target "proto-files" {
|
target "proto-files" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}proto-files.Dockerfile"
|
dockerfile = "./dockerfiles/proto-files.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
}
|
}
|
||||||
@@ -69,7 +54,7 @@ variable "CORE_MOCK_TAG" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "core-mock" {
|
target "core-mock" {
|
||||||
context = "${LOGIN_DIR}apps/login-test-integration/core-mock"
|
context = "./apps/login-test-integration/core-mock"
|
||||||
contexts = {
|
contexts = {
|
||||||
protos = "target:proto-files"
|
protos = "target:proto-files"
|
||||||
}
|
}
|
||||||
@@ -82,8 +67,7 @@ variable "LOGIN_TEST_INTEGRATION_TAG" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "login-test-integration" {
|
target "login-test-integration" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-test-integration.Dockerfile"
|
dockerfile = "./dockerfiles/login-test-integration.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
}
|
}
|
||||||
@@ -96,8 +80,7 @@ variable "LOGIN_TEST_ACCEPTANCE_TAG" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
target "login-test-acceptance" {
|
target "login-test-acceptance" {
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-test-acceptance.Dockerfile"
|
dockerfile = "./dockerfiles/login-test-acceptance.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-pnpm = "target:login-pnpm"
|
login-pnpm = "target:login-pnpm"
|
||||||
}
|
}
|
||||||
@@ -114,8 +97,7 @@ target "docker-metadata-action" {}
|
|||||||
# We run integration and acceptance tests against the next standalone server for docker.
|
# We run integration and acceptance tests against the next standalone server for docker.
|
||||||
target "login-standalone" {
|
target "login-standalone" {
|
||||||
inherits = ["docker-metadata-action"]
|
inherits = ["docker-metadata-action"]
|
||||||
dockerfile = "${DOCKERFILES_DIR}login-standalone.Dockerfile"
|
dockerfile = "./dockerfiles/login-standalone.Dockerfile"
|
||||||
context = "${LOGIN_DIR}"
|
|
||||||
contexts = {
|
contexts = {
|
||||||
login-client = "target:login-client"
|
login-client = "target:login-client"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user