refactor(web): disable cache (worse perf on any dep change build)

This commit is contained in:
Collin Barrett 2025-06-16 19:55:51 -05:00
parent d37b97dd12
commit 7a661915f2
2 changed files with 1 additions and 6 deletions

View file

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

View file

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