mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 17:27:31 +00:00
cache login build
This commit is contained in:
6
.github/workflows/login-container.yml
vendored
6
.github/workflows/login-container.yml
vendored
@@ -85,7 +85,11 @@ jobs:
|
|||||||
},
|
},
|
||||||
".artifacts/login-build-cache-mount/turbo":{
|
".artifacts/login-build-cache-mount/turbo":{
|
||||||
"id":"turbo",
|
"id":"turbo",
|
||||||
"target":"/build/.turbo"
|
"target":"/build/.turbo/cache"
|
||||||
|
},
|
||||||
|
".artifacts/login-build-cache-mount/next":{
|
||||||
|
"id":"next",
|
||||||
|
"target":"/build/apps/login/.next/cache"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dockerfile: build/login/Dockerfile
|
dockerfile: build/login/Dockerfile
|
||||||
|
2
apps/login/next-env-vars.d.ts
vendored
2
apps/login/next-env-vars.d.ts
vendored
@@ -27,6 +27,8 @@ declare namespace NodeJS {
|
|||||||
/**
|
/**
|
||||||
* Optional: custom request headers to be added to every request
|
* Optional: custom request headers to be added to every request
|
||||||
* Split by comma, key value pairs separated by colon
|
* Split by comma, key value pairs separated by colon
|
||||||
|
* For example: to call the Zitadel API at an internal address, you can set:
|
||||||
|
* `CUSTOM_REQUEST_HEADERS=Host:http://zitadel-internal:8080`
|
||||||
*/
|
*/
|
||||||
CUSTOM_REQUEST_HEADERS?: string;
|
CUSTOM_REQUEST_HEADERS?: string;
|
||||||
}
|
}
|
||||||
|
@@ -27,7 +27,8 @@ WORKDIR /build
|
|||||||
COPY --from=installer /install/ .
|
COPY --from=installer /install/ .
|
||||||
COPY --from=pruner /prune/out/full/ .
|
COPY --from=pruner /prune/out/full/ .
|
||||||
COPY proto ./proto
|
COPY proto ./proto
|
||||||
RUN --mount=type=cache,id=turbo,target=/build/.turbo \
|
RUN --mount=type=cache,id=turbo,target=/build/.turbo/cache \
|
||||||
|
--mount=type=cache,id=next,target=/build/apps/login/.next/cache \
|
||||||
pnpm turbo build:login:standalone
|
pnpm turbo build:login:standalone
|
||||||
|
|
||||||
FROM scratch AS build-out
|
FROM scratch AS build-out
|
||||||
|
Reference in New Issue
Block a user