This repository was archived by the owner on Mar 20, 2026. It is now read-only.
Build mimetype-from-header worker #2
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 mimetype-from-header worker | |
| on: | |
| workflow_dispatch: {} | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - ".github/workflows/build-worker-mimetype.yml" | |
| - "workers/document-mimetype-from-header-shim/**" | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Compute owner lowercase | |
| shell: bash | |
| run: echo "OWNER_LC=${GITHUB_REPOSITORY_OWNER,,}" >> $GITHUB_ENV | |
| - uses: docker/setup-buildx-action@v3 | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: workers/document-mimetype-from-header-shim | |
| file: workers/document-mimetype-from-header-shim/Dockerfile | |
| push: true | |
| tags: ghcr.io/${{ env.OWNER_LC }}/nldoc-worker-document-mimetype-from-header:latest | |
| provenance: false | |
| sbom: false | |