feat: Layout detection in auto strategy #50
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
on: | |
pull_request: | |
branches: | |
- main | |
name: Test build docker | |
jobs: | |
build-docker: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dockerfile: [Dockerfile, Dockerfile.gpu] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image with caching | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ${{ matrix.dockerfile }} | |
push: false | |
tags: quivrhq/megaparse:${{ matrix.dockerfile }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |