Skip to content

Modern Docker Management, Designed for Everyone

chore: fix pnpm cache

Kyle Mendell91956573cf3a
diff --git a/.depot/workflows/build-next-images.yml b/.depot/workflows/build-next-images.yml
index 5a824bc13..773f6766f 100644
--- a/.depot/workflows/build-next-images.yml
+++ b/.depot/workflows/build-next-images.yml
@@ -1,4 +1,4 @@
-name: Build Next Images
+name: Build Next Versions of Arcane and CLI
on:
push:
@@ -16,7 +16,7 @@ permissions:
jobs:
build-next-images:
- runs-on: depot-ubuntu-24.04-8
+ runs-on: depot-ubuntu-24.04-32
env:
MANAGER_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/arcane
@@ -29,9 +29,9 @@ jobs:
fetch-depth: 0
- name: Setup PNPM
- uses: pnpm/action-setup@v5
+ uses: pnpm/action-setup@v6
with:
- run_install: false
+ run_install: true
- name: Setup Just
uses: taiki-e/install-action@just
@@ -52,7 +52,7 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y gettext-base
- name: Install cosign
- uses: sigstore/[email protected]
+ uses: sigstore/[email protected]
- name: Set up Depot CLI
uses: depot/setup-action@v1
diff --git a/docker/Dockerfile b/docker/Dockerfile
index f8e7ada2d..15c1b5108 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -12,12 +12,12 @@ WORKDIR /build
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
COPY frontend/package.json ./frontend/package.json
-RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
+RUN --mount=type=cache,id=arcane-pnpm-v2,target=/pnpm/store,sharing=locked \
pnpm fetch
COPY frontend ./frontend
-RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
+RUN --mount=type=cache,id=arcane-pnpm-v2,target=/pnpm/store,sharing=locked \
pnpm install -r --offline --frozen-lockfile
ENV BUILD_PATH=dist
@@ -99,4 +99,4 @@ VOLUME ["/app/data"]
LABEL com.getarcaneapp.arcane="true"
-CMD ["./arcane"]
\ No newline at end of file
+CMD ["./arcane"]
diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev
index fff2c3db8..354c2317c 100644
--- a/docker/Dockerfile.dev
+++ b/docker/Dockerfile.dev
@@ -16,14 +16,14 @@ COPY pnpm-lock.yaml pnpm-workspace.yaml package.json ./
COPY frontend/package.json ./frontend/package.json
# Fetch dependencies with cache mount
-RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
+RUN --mount=type=cache,id=arcane-pnpm-v2,target=/pnpm/store,sharing=locked \
pnpm fetch
# Copy frontend source
COPY frontend ./frontend
# Install from the store (offline)
-RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
+RUN --mount=type=cache,id=arcane-pnpm-v2,target=/pnpm/store,sharing=locked \
pnpm install -r --offline --frozen-lockfile
ENV NODE_ENV=development \