diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8adde642..d479c1d8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,7 +53,8 @@ jobs: file: ./Dockerfile push: true platforms: linux/amd64 - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tag }} + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tag }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + no-cache: true diff --git a/src/lib/prisma.ts b/src/lib/prisma.ts index 536b7e14..a21f3fc8 100644 --- a/src/lib/prisma.ts +++ b/src/lib/prisma.ts @@ -4,9 +4,9 @@ declare global { var prisma: PrismaClient | undefined; } -if (!process.env.DATABASE_URL) { - throw new Error("DATABASE_URL is required but not found in environment variables"); -} +// if (!process.env.DATABASE_URL) { +// throw new Error("DATABASE_URL is required but not found in environment variables"); +// } const prisma = global.prisma ??