From 32b6376706e783cebd97c20d64e2bea10e764232 Mon Sep 17 00:00:00 2001 From: Jaemin Choi <1dotolee@gmail.com> Date: Wed, 6 Mar 2024 03:31:13 +0900 Subject: [PATCH] fix(infra): update context path for cd-dev pipeline (#1543) * fix: update iris build context * fix: update backend entrypoint path in dockerfile * feat: update cd-prod also --- .github/workflows/cd-dev.yml | 6 +++--- .github/workflows/cd-prod.yml | 2 +- apps/backend/Dockerfile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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"]