Bump pymupdf from 1.21.1 to 1.24.7 #1487
Workflow file for this run
This file contains 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: package | |
on: | |
push: | |
merge_group: | |
permissions: | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up | |
run: | | |
docker --version | |
docker-compose --version | |
echo "${GITHUB_REF}" | |
- name: Start services | |
run: | | |
make services | |
- name: Build docker images | |
run: | | |
make cached-build | |
- name: Install development dependencies | |
run: make dev | |
- name: Check formatting | |
run: make format-check | |
- name: Run linter (ruff) | |
run: make lint | |
- name: Run tests | |
run: make test | |
- name: Push docker images (hash) | |
if: (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')) && github.actor != 'dependabot[bot]' | |
run: | | |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | |
docker tag ghcr.io/alephdata/ingest-file ghcr.io/alephdata/ingest-file:${GITHUB_SHA} | |
docker push ghcr.io/alephdata/ingest-file:${GITHUB_SHA} | |
docker tag ghcr.io/alephdata/ingest-file ghcr.io/alephdata/ingest-file:cache | |
docker push ghcr.io/alephdata/ingest-file:cache | |
- name: Push docker images for tags | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
run: | | |
export TAG=${GITHUB_REF/refs\/tags\//} | |
docker tag ghcr.io/alephdata/ingest-file ghcr.io/alephdata/ingest-file:${TAG}; | |
docker push ghcr.io/alephdata/ingest-file:${TAG}; | |
- name: Tag latest image | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/test-') | |
run: | | |
docker push ghcr.io/alephdata/ingest-file; |