Skip to content

Publish mayflower/docling-ocr-qwen3vl image #31

Publish mayflower/docling-ocr-qwen3vl image

Publish mayflower/docling-ocr-qwen3vl image #31

name: Publish mayflower/docling-ocr-qwen3vl image
on:
push:
branches:
- main
paths:
- "Containerfile.mayflower-qwen3vl"
- ".github/workflows/images-mayflower-docling-ocr-qwen3vl.yml"
workflow_dispatch:
inputs:
base_image:
description: "Base docling-serve image"
required: true
default: "ghcr.io/docling-project/docling-serve-cu128:main"
plugin_ref:
description: "Git ref for mayflower/docling-ocr-qwen3vl"
required: true
default: "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
attestations: write
id-token: write
env:
IMAGE_NAME: ghcr.io/mayflower/docling-serve
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v5
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}
tags: |
type=sha,prefix=sha-
type=ref,event=branch
flavor: |
latest=true
- name: Build and push image
id: build
uses: docker/build-push-action@v6
with:
context: .
file: Containerfile.mayflower-qwen3vl
push: true
platforms: linux/amd64
pull: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
BASE_IMAGE=${{ github.event.inputs.base_image || 'ghcr.io/docling-project/docling-serve-cu128:main' }}
QWEN3VL_PLUGIN_REF=${{ github.event.inputs.plugin_ref || 'main' }}
QWEN3VL_CACHE_BUST=${{ github.run_id }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true