This repository was archived by the owner on Mar 20, 2026. It is now read-only.
fix(shim): bypass document-source station, forward directly to pdf-pd… #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build document-source worker | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - ".github/workflows/build-worker-document-source.yml" | |
| - "workers/document-source-shim/**" | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Compute owner lowercase | |
| shell: bash | |
| run: echo "OWNER_LC=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Prepare build context | |
| run: | | |
| echo "Using local shim worker as build context" | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: workers/document-source-shim | |
| file: workers/document-source-shim/Dockerfile | |
| push: true | |
| tags: ghcr.io/${{ env.OWNER_LC }}/nldoc-worker-document-source:latest | |
| provenance: false | |
| sbom: false | |
| no-cache: true | |