diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index 76e4c3a..3325793 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -72,6 +72,8 @@ jobs: # build on feature branches, push only on master branch # TODO push: ${{ github.ref == 'refs/heads/master' }} push: true + build-args: | + run_tests=false - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/Dockerfile_no_qr_reader b/Dockerfile_no_qr_reader index c6221f8..e4fdd0b 100644 --- a/Dockerfile_no_qr_reader +++ b/Dockerfile_no_qr_reader @@ -11,9 +11,7 @@ RUN apk add --no-cache nano \ && if [[ "$(apk --print-arch)" == "aarch64" ]]; then apk add --no-cache --virtual .build-deps gcc libc-dev python3-dev py3-setuptools zlib-dev jpeg-dev; fi \ && pip install protobuf qrcode Pillow \ && if [[ "$(apk --print-arch)" == "aarch64" ]]; then apk del .build-deps; fi \ - && if [[ "$run_tests" == "true" ]]; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed --build-arg run_tests=false; else echo "Not running tests..."; fi - -# && if [[ "$TARGETARCH" == "arm64" ]]; then apk add zlib-dev jpeg-dev; fi \ + && if [[ "$run_tests" == "true" ]]; then /extract/run_pytest.sh test_extract_otp_secret_keys_pytest.py -k "not qreader" --relaxed; else echo "Not running tests..."; fi WORKDIR /files