mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 18:07:31 +00:00
chore(login): migrate nextjs login to monorepo (#10134)
# Which Problems Are Solved We move the login code to the zitadel repo. # How the Problems Are Solved The login repo is added to ./login as a git subtree pulled from the dockerize-ci branch. Apart from the login code, this PR contains the changes from #10116 # Additional Context - Closes https://github.com/zitadel/typescript/issues/474 - Also merges #10116 - Merging is blocked by failing check because of: - https://github.com/zitadel/zitadel/pull/10134#issuecomment-3012086106 --------- Co-authored-by: Max Peintner <peintnerm@gmail.com> Co-authored-by: Max Peintner <max@caos.ch> Co-authored-by: Florian Forster <florian@zitadel.com>
This commit is contained in:
8
dockerfiles/proto-files.Dockerfile
Normal file
8
dockerfiles/proto-files.Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM bufbuild/buf:1.54.0 AS proto-files
|
||||
RUN buf export https://github.com/envoyproxy/protoc-gen-validate.git --path validate --output /proto-files && \
|
||||
buf export https://github.com/grpc-ecosystem/grpc-gateway.git --path protoc-gen-openapiv2 --output /proto-files && \
|
||||
buf export https://github.com/googleapis/googleapis.git --path google/api/annotations.proto --path google/api/http.proto --path google/api/field_behavior.proto --output /proto-files
|
||||
|
||||
FROM scratch
|
||||
COPY --from=proto-files /proto-files /
|
||||
COPY ./proto /
|
2
dockerfiles/proto-files.Dockerfile.dockerignore
Normal file
2
dockerfiles/proto-files.Dockerfile.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!proto
|
8
dockerfiles/typescript-proto-client.Dockerfile
Normal file
8
dockerfiles/typescript-proto-client.Dockerfile
Normal file
@@ -0,0 +1,8 @@
|
||||
FROM login-pnpm AS typescript-proto-client
|
||||
COPY ./login/packages/zitadel-proto/package.json ./packages/zitadel-proto/
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
|
||||
pnpm install --frozen-lockfile --workspace-root --filter zitadel-proto
|
||||
COPY --from=proto-files /buf.yaml /buf.lock /proto-files/
|
||||
COPY --from=proto-files /zitadel /proto-files/zitadel
|
||||
COPY ./login/packages/zitadel-proto/buf.gen.yaml ./packages/zitadel-proto/
|
||||
RUN cd packages/zitadel-proto && pnpm exec buf generate /proto-files
|
11
dockerfiles/typescript-proto-client.Dockerfile.dockerignore
Normal file
11
dockerfiles/typescript-proto-client.Dockerfile.dockerignore
Normal file
@@ -0,0 +1,11 @@
|
||||
*
|
||||
!/login/packages/zitadel-proto/
|
||||
login/packages/zitadel-proto/google
|
||||
login/packages/zitadel-proto/zitadel
|
||||
login/packages/zitadel-proto/protoc-gen-openapiv2
|
||||
login/packages/zitadel-proto/validate
|
||||
|
||||
**/*.md
|
||||
**/*.png
|
||||
**/node_modules
|
||||
**/.turbo
|
Reference in New Issue
Block a user