diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index e7353d052e..e78fb9fe6f 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -27,7 +27,7 @@ jobs: - name: Build and push image uses: docker/build-push-action@v5 with: - file: ./apps/backend/Dockerfile + file: ./apps/backend/Dockerfile # build with root context push: true build-args: 'target=client' tags: ghcr.io/${{ github.repository_owner }}/codedang-client-api:latest @@ -49,7 +49,7 @@ jobs: - name: Build and push image uses: docker/build-push-action@v5 with: - file: ./apps/backend/Dockerfile + file: ./apps/backend/Dockerfile # build with root context push: true build-args: 'target=admin' tags: ghcr.io/${{ github.repository_owner }}/codedang-admin-api:latest @@ -72,7 +72,7 @@ jobs: uses: docker/build-push-action@v5 with: push: true - context: '{{defaultContext}}:iris' + context: '{{defaultContext}}:apps/iris' tags: ghcr.io/${{ github.repository_owner }}/codedang-iris:latest run-server: diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index 2ef84ab155..6c22706201 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -82,7 +82,7 @@ jobs: uses: docker/build-push-action@v5 with: push: true - context: '{{defaultContext}}:iris' + context: '{{defaultContext}}:apps/iris' tags: ${{ steps.login-ecr.outputs.registry }}/codedang-iris:latest deploy: diff --git a/apps/backend/Dockerfile b/apps/backend/Dockerfile index 9509316183..01a0951495 100644 --- a/apps/backend/Dockerfile +++ b/apps/backend/Dockerfile @@ -25,7 +25,7 @@ ENV NODE_ENV=production ENV TARGET=${target} COPY --from=builder /build/out /app -COPY ./backend/entrypoint.sh /app +COPY ./apps/backend/entrypoint.sh /app WORKDIR /app ENTRYPOINT ["/app/entrypoint.sh"]