Build Github
This commit is contained in:
7
.github/workflows/publish.yml
vendored
7
.github/workflows/publish.yml
vendored
@@ -53,7 +53,8 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
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 }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
no-cache: true
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ declare global {
|
|||||||
var prisma: PrismaClient | undefined;
|
var prisma: PrismaClient | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!process.env.DATABASE_URL) {
|
// if (!process.env.DATABASE_URL) {
|
||||||
throw new Error("DATABASE_URL is required but not found in environment variables");
|
// throw new Error("DATABASE_URL is required but not found in environment variables");
|
||||||
}
|
// }
|
||||||
|
|
||||||
const prisma =
|
const prisma =
|
||||||
global.prisma ??
|
global.prisma ??
|
||||||
|
|||||||
Reference in New Issue
Block a user