mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 13:19:21 +00:00
cache login build
This commit is contained in:
11
.github/workflows/login-container.yml
vendored
11
.github/workflows/login-container.yml
vendored
@@ -77,6 +77,17 @@ jobs:
|
||||
with:
|
||||
builder: ${{ steps.setup-buildx.outputs.name }}
|
||||
cache-dir: .artifacts/login-build-cache-mount
|
||||
cache-map: |
|
||||
{
|
||||
".artifacts/login-build-cache-mount/pnpm":{
|
||||
"id":"pnpm",
|
||||
"target":"/pnpm/store"
|
||||
},
|
||||
".artifacts/login-build-cache-mount/turbo":{
|
||||
"id":"turbo",
|
||||
"target":"/build/.turbo"
|
||||
}
|
||||
}
|
||||
dockerfile: build/login/Dockerfile
|
||||
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
|
||||
- name: Bake login multi-arch
|
||||
|
@@ -32,8 +32,8 @@ RUN --mount=type=cache,id=turbo,target=/build/.turbo \
|
||||
|
||||
FROM scratch AS build-out
|
||||
COPY /apps/login/public ./apps/login/public
|
||||
COPY --from=builder /app/apps/login/.next/standalone ./
|
||||
COPY --from=builder /app/apps/login/.next/static ./apps/login/.next/static
|
||||
COPY --from=builder /build/apps/login/.next/standalone ./
|
||||
COPY --from=builder /build/apps/login/.next/static ./apps/login/.next/static
|
||||
|
||||
FROM runtime AS login-standalone
|
||||
WORKDIR /runtime
|
||||
|
Reference in New Issue
Block a user