From d9957f386432185162d27148620cb5d3c5af64ba Mon Sep 17 00:00:00 2001 From: Seerat Awan Date: Wed, 16 Oct 2024 14:35:35 +0500 Subject: [PATCH] feat: updated paths --- .github/workflows/cd-develop.yml | 9 +++++++-- packages/javascript-sdk/docker/Dockerfile | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-develop.yml b/.github/workflows/cd-develop.yml index 92bb1c2..05e1b0b 100644 --- a/.github/workflows/cd-develop.yml +++ b/.github/workflows/cd-develop.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: usermaven-js-stage - DOCKERFILE_PATH: docker/Dockerfile + DOCKERFILE_PATH: packages/javascript-sdk/docker/Dockerfile jobs: dev_publish: @@ -76,13 +76,18 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.PAT }} - - name: Extract metadata for Docker id: meta uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: List directory contents + run: | + echo "Root directory:" + ls -R + echo "packages/javascript-sdk directory:" + ls -R packages/javascript-sdk - name: Build and push Docker image uses: docker/build-push-action@v6 diff --git a/packages/javascript-sdk/docker/Dockerfile b/packages/javascript-sdk/docker/Dockerfile index e60e227..9ae16e9 100644 --- a/packages/javascript-sdk/docker/Dockerfile +++ b/packages/javascript-sdk/docker/Dockerfile @@ -6,5 +6,5 @@ RUN pnpm install && pnpm build FROM nginx:latest COPY --from=builder /usr/src/dist/lib.js /usr/share/nginx/html RUN rm /etc/nginx/nginx.conf && rm /etc/nginx/conf.d/default.conf -COPY docker/nginx.conf /etc/nginx/nginx.conf -COPY docker/default.conf /etc/nginx/conf.d/default.conf +COPY packages/javascript-sdk/docker/nginx.conf /etc/nginx/nginx.conf +COPY packages/javascript-sdk/docker/default.conf /etc/nginx/conf.d/default.conf