diff --git a/.github/workflows/base-docker-publish.yml b/.github/workflows/base-docker-publish.yml index 36972ba9..eb5b780c 100644 --- a/.github/workflows/base-docker-publish.yml +++ b/.github/workflows/base-docker-publish.yml @@ -26,4 +26,4 @@ jobs: - name: Build & Push Image env: VERSION: ${{ inputs.version }} - run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:$VERSION --push ./backend + run: docker buildx build --platform linux/amd64,linux/arm64 -t yorkieteam/codepair:$VERSION --push . diff --git a/.github/workflows/docker-publish-latest.yaml b/.github/workflows/docker-publish-latest.yaml index 1a6123a1..f44851b2 100644 --- a/.github/workflows/docker-publish-latest.yaml +++ b/.github/workflows/docker-publish-latest.yaml @@ -6,6 +6,7 @@ on: paths: - ".github/workflows/docker-publish-latest.yaml" - "backend/**" + - "Dockerfile" jobs: call-base-docker-publish: uses: ./.github/workflows/base-docker-publish.yml diff --git a/Dockerfile b/Dockerfile index 1e94bd80..524f811e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ COPY . /usr/src/app WORKDIR /usr/src/app RUN sed -i 's/"prepare": "husky install"/"prepare": ""/' ./package.json RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile -RUN pnpm backend db:generate +RUN pnpx prisma generate --schema=./backend/prisma/schema.prisma RUN pnpm backend build RUN pnpm deploy --filter=backend --prod /prod/backend WORKDIR /prod/backend