Skip to content

feat: implement document image processing and enhance API endpoints #20

feat: implement document image processing and enhance API endpoints

feat: implement document image processing and enhance API endpoints #20

Workflow file for this run

name: Docker Build and Push
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
username: pig4cloud
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
pig4cloud/markitdown:latest
build-args: |
API_KEY=${{ secrets.GLM_KEY }}
BASE_URL=https://open.bigmodel.cn/api/paas/v4
MODEL=glm-4v-flash
PROMPT=提取图片中全部的文本,不需要任何推理和总结,只需要原文
FILE_DELETE_DELAY=300