From 14245400812e4641ca0730fa7ddb5588b7c2c4f6 Mon Sep 17 00:00:00 2001 From: abdullahalam123 Date: Tue, 14 Oct 2025 15:40:56 +0530 Subject: [PATCH 1/2] fix: add mjs MIME type to nginx configuration Ensure proper handling of JavaScript modules with .mjs extension by adding the correct MIME type --- nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nginx.conf b/nginx.conf index ace64e7..abcd35d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -4,6 +4,9 @@ events { http { include /etc/nginx/mime.types; + types { + application/javascript mjs; + } default_type application/octet-stream; gzip on; From 412f83950d150b40e2dcc04bdf9e5c4fc2d016c1 Mon Sep 17 00:00:00 2001 From: Duy Pham <32657584+phamleduy04@users.noreply.github.com> Date: Tue, 14 Oct 2025 10:29:36 -0500 Subject: [PATCH 2/2] feat: cicd for build and push to docker registry --- .github/workflows/build-and-publish.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build-and-publish.yml diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml new file mode 100644 index 0000000..7c45f0c --- /dev/null +++ b/.github/workflows/build-and-publish.yml @@ -0,0 +1,30 @@ +name: build docker image and push to dockerhub + +on: + push: + branches: + - "main" + +jobs: + docker-build-and-push: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: bentopdf/bentopdf:latest + platforms: linux/amd64,linux/arm64 \ No newline at end of file