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 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;