diff --git a/.github/workflows/cd-develop.yml b/.github/workflows/cd-develop.yml index 393cfc4..f908142 100644 --- a/.github/workflows/cd-develop.yml +++ b/.github/workflows/cd-develop.yml @@ -11,7 +11,6 @@ env: IMAGE_NAME: usermaven-js-stage DOCKERFILE_PATH: packages/javascript-sdk/docker/Dockerfile - jobs: dev_publish: runs-on: ubuntu-latest @@ -93,8 +92,8 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v6 with: - context: packages/javascript-sdk - file: docker/Dockerfile + context: . + file: ${{ env.DOCKERFILE_PATH }} push: true tags: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} labels: ${{ steps.meta.outputs.labels }} diff --git a/packages/javascript-sdk/docker/Dockerfile b/packages/javascript-sdk/docker/Dockerfile index e04967e..dab6dab 100644 --- a/packages/javascript-sdk/docker/Dockerfile +++ b/packages/javascript-sdk/docker/Dockerfile @@ -12,8 +12,8 @@ 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 custom Nginx configurations -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 # Optional: List directory contents for debugging RUN ls -al /etc/nginx