Skip to content

fix(container): replace inspect.getsource sanity check with file-read… #18

fix(container): replace inspect.getsource sanity check with file-read…

fix(container): replace inspect.getsource sanity check with file-read… #18

Workflow file for this run

name: Publish docling-serve images
on:
push:
branches:
- main
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set.outputs.matrix }}
steps:
- uses: actions/checkout@v5
- id: set
run: echo "matrix=$(jq -c . .github/image-matrix.json)" >> "$GITHUB_OUTPUT"
build_and_publish_images:
name: Build and push ${{ matrix.spec.name }} container image to GHCR and QUAY
needs: prepare
strategy:
matrix:
spec: ${{ fromJSON(needs.prepare.outputs.matrix) }}
permissions:
packages: write
contents: read
attestations: write
id-token: write
secrets: inherit
uses: ./.github/workflows/job-image.yml
with:
publish: true
environment: registry-creds
build_args: ${{ matrix.spec.build_args }}
ghcr_image_name: ${{ matrix.spec.name }}
quay_image_name: ${{ matrix.spec.name }}
platforms: ${{ matrix.spec.platforms }}
tag_latest: ${{ matrix.spec.tag_latest }}