cache login build

This commit is contained in:
Elio Bischof
2025-07-31 00:55:36 +02:00
parent 048d152650
commit 9c83436128
3 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
} }

View File

@@ -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