mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:37:33 +00:00
cache login build
This commit is contained in:
14
.github/workflows/login-container.yml
vendored
14
.github/workflows/login-container.yml
vendored
@@ -64,7 +64,21 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
|
id: setup-buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
id: cache
|
||||||
|
with:
|
||||||
|
path: .artifacts/cache-mount
|
||||||
|
key: login-build-cache-mount-${{ hashFiles('build/login/Dockerfile') }}
|
||||||
|
- name: Restore Docker login-build-cache-mount
|
||||||
|
uses: reproducible-containers/buildkit-cache-dance@v3
|
||||||
|
with:
|
||||||
|
builder: ${{ steps.setup-buildx.outputs.name }}
|
||||||
|
cache-dir: .artifacts/login-build-cache-mount
|
||||||
|
dockerfile: build/login/Dockerfile
|
||||||
|
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
|
||||||
- name: Bake login multi-arch
|
- name: Bake login multi-arch
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v6
|
||||||
env:
|
env:
|
||||||
|
@@ -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 pnpm turbo build:login:standalone
|
RUN --mount=type=cache,id=turbo,target=/build/.turbo \
|
||||||
|
pnpm turbo build:login:standalone
|
||||||
|
|
||||||
FROM scratch AS build-out
|
FROM scratch AS build-out
|
||||||
COPY /apps/login/public ./apps/login/public
|
COPY /apps/login/public ./apps/login/public
|
||||||
|
Reference in New Issue
Block a user