mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:37:31 +00:00
optimize
This commit is contained in:
2
Makefile
2
Makefile
@@ -71,7 +71,7 @@ login_test_integration_cleanup:
|
||||
login_test_integration: login_test_integration_build
|
||||
$(LOGIN_DIR)scripts/run_or_skip.sh login_test_integration_run \
|
||||
"$(LOGIN_TAG) \
|
||||
$(CORE_MOCK_TAG) \
|
||||
$(LOGIN_CORE_MOCK_TAG) \
|
||||
$(LOGIN_TEST_INTEGRATION_TAG)"
|
||||
|
||||
login_test_acceptance_build_bake:
|
||||
|
@@ -6,14 +6,6 @@ variable "DOCKERFILES_DIR" {
|
||||
default = "dockerfiles/"
|
||||
}
|
||||
|
||||
variable "UID" {
|
||||
default = "1000"
|
||||
}
|
||||
|
||||
variable "GID" {
|
||||
default = "1000"
|
||||
}
|
||||
|
||||
# typescript-proto-client is used to generate the client code for the login service.
|
||||
# It is not login-prefixed, so it is easily extendable.
|
||||
# To extend this bake-file.hcl, set the context of all login-prefixed targets to a different directory.
|
||||
@@ -28,8 +20,10 @@ target "typescript-proto-client" {
|
||||
}
|
||||
|
||||
target "typescript-proto-client-out" {
|
||||
inherits = ["typescript-proto-client"]
|
||||
target = "typescript-proto-client-out"
|
||||
dockerfile = "${DOCKERFILES_DIR}typescript-proto-client-out.Dockerfile"
|
||||
contexts = {
|
||||
typescript-proto-client = "target:typescript-proto-client"
|
||||
}
|
||||
output = [
|
||||
"type=local,dest=packages/zitadel-proto"
|
||||
]
|
||||
|
5
dockerfiles/typescript-proto-client-out.Dockerfile
Normal file
5
dockerfiles/typescript-proto-client-out.Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM scratch AS typescript-proto-client-out
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/zitadel /zitadel
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/google /google
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/protoc-gen-openapiv2 /protoc-gen-openapiv2
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/validate /validate
|
@@ -0,0 +1 @@
|
||||
*
|
@@ -4,11 +4,3 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
pnpm install --frozen-lockfile --workspace-root --filter zitadel-proto
|
||||
COPY packages/zitadel-proto ./packages/zitadel-proto
|
||||
RUN pnpm generate
|
||||
|
||||
FROM scratch AS typescript-proto-client-out
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/zitadel /zitadel
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/google /google
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/protoc-gen-openapiv2 /protoc-gen-openapiv2
|
||||
COPY --from=typescript-proto-client /build/packages/zitadel-proto/validate /validate
|
||||
|
||||
FROM typescript-proto-client
|
||||
|
@@ -1,2 +1,6 @@
|
||||
*
|
||||
!/packages/zitadel-proto/
|
||||
packages/zitadel-proto/google
|
||||
packages/zitadel-proto/zitadel
|
||||
packages/zitadel-proto/protoc-gen-openapiv2
|
||||
packages/zitadel-proto/validate
|
||||
|
Reference in New Issue
Block a user