From 7a661915f24d16891ee54b40900d9c7951d462ac Mon Sep 17 00:00:00 2001 From: Collin Barrett <6483057+collinbarrett@users.noreply.github.com> Date: Mon, 16 Jun 2025 19:55:51 -0500 Subject: [PATCH] refactor(web): disable cache (worse perf on any dep change build) --- .github/workflows/web.yml | 5 ----- web/Dockerfile | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 0180b8326..51752c80a 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -34,9 +34,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Log in to the Container registry if: github.event_name == 'push' uses: docker/login-action@v3 @@ -53,8 +50,6 @@ jobs: tags: | ${{ env.CONTAINER_REGISTRY }}/${{ env.CONTAINER_REPOSITORY }}:${{ env.CONTAINER_IMAGE_TAG_UNIQUE }} ${{ env.CONTAINER_REGISTRY }}/${{ env.CONTAINER_REPOSITORY }}:latest - cache-from: type=gha - cache-to: type=gha,mode=max deploy: name: Deploy diff --git a/web/Dockerfile b/web/Dockerfile index ea22462a8..3a4ab17e3 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -27,7 +27,7 @@ COPY . . # https://nextjs.org/telemetry ENV NEXT_TELEMETRY_DISABLED=1 -RUN --mount=type=cache,target=/app/.next/cache \ +RUN \ if [ -f package-lock.json ]; then npm run build; \ else echo "package-lock.json not found." && exit 1; \ fi