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