mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-30 16:47:19 +00:00
* add a fallback xpdf alternative to PyMuPDF * add xpdpf to the base images * to be reverted * silence mypy on conditional error * do not install pdf extras in base images * bring back the xpdf build strategy * remove leftovers from old build * fix indentation * Apply suggestions from code review Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com> * revert test workflow --------- Co-authored-by: Silvano Cerza <3314350+silvanocerza@users.noreply.github.com>
40 lines
863 B
YAML
40 lines
863 B
YAML
name: Xpdf Docker image release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- docker/docker-bake-xpdf.hcl
|
|
- docker/Dockerfile.xpdf
|
|
|
|
jobs:
|
|
publish-xpdf-image:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
DOCKER_REPO_NAME: deepset/xpdf
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_HUB_USER }}
|
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
|
|
- name: Build and publish Xpdf image
|
|
uses: docker/bake-action@v2
|
|
with:
|
|
files: "docker-bake-xpdf.hcl"
|
|
workdir: docker
|
|
targets: xpdf
|
|
push: true
|