ci_docker: add docker/setup-buildx-action@v2

This commit is contained in:
scito
2022-12-29 00:25:29 +01:00
parent d4f5eb243e
commit 0eb5014eb0
2 changed files with 5 additions and 1 deletions

View File

@@ -30,6 +30,9 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:

View File

@@ -5,9 +5,10 @@ WORKDIR /extract
COPY . .
ARG run_tests=true
ARG TARGETPLATFORM
RUN apk add nano \
&& echo "TARGETARCH: $TARGETARCH" \
&& echo "BUILDARCH: $BUILDARCH" \
&& if [[ "$TARGETARCH" == "arm64" ]]; then apk add zlib-dev jpeg-dev; fi \
&& pip install protobuf qrcode Pillow \
&& 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