Skip to content

Commit

Permalink
Fix Dockerfile image build error (#367)
Browse files Browse the repository at this point in the history
* Fix Dockerfile path in docker-publish workflow

* Fix docker-publish-latest.yaml

* Change prisma schema generation command
  • Loading branch information
choidabom authored and devleejb committed Oct 11, 2024
1 parent 7063137 commit beb8c8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/base-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
1 change: 1 addition & 0 deletions .github/workflows/docker-publish-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit beb8c8d

Please sign in to comment.