Skip to content

Edit Dockerfile.model to use --platform #144

Edit Dockerfile.model to use --platform

Edit Dockerfile.model to use --platform #144

name: Build opencv-qr-decoder-python application
on:
push:
paths:
- 'opencv-qr-decoder-python/**'
- '!opencv-qr-decoder-python/README.md'
- '.github/workflows/opencv-qr-decoder-python.yml'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
env:
EXREPO: acap-computer-vision-examples
EXNAME: opencv-qr-decoder-python
steps:
- uses: actions/checkout@v2
- uses: docker/setup-buildx-action@v2
with:
install: true
- name: Build ${{ env.example }} application
env:
example: ${{ env.EXNAME }}
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}:1.0
run: |
cd $EXNAME
docker run --rm --privileged multiarch/qemu-user-static --credential yes --persistent yes
docker build --no-cache --tag $imagetag .