ci_docker: add docker/setup-buildx-action@v2
This commit is contained in:
3
.github/workflows/ci_docker.yml
vendored
3
.github/workflows/ci_docker.yml
vendored
@@ -30,6 +30,9 @@ jobs:
|
|||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ WORKDIR /extract
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
ARG run_tests=true
|
ARG run_tests=true
|
||||||
ARG TARGETPLATFORM
|
|
||||||
|
|
||||||
RUN apk add nano \
|
RUN apk add nano \
|
||||||
|
&& echo "TARGETARCH: $TARGETARCH" \
|
||||||
|
&& echo "BUILDARCH: $BUILDARCH" \
|
||||||
&& if [[ "$TARGETARCH" == "arm64" ]]; then apk add zlib-dev jpeg-dev; fi \
|
&& if [[ "$TARGETARCH" == "arm64" ]]; then apk add zlib-dev jpeg-dev; fi \
|
||||||
&& pip install protobuf qrcode Pillow \
|
&& 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
|
&& 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
|
||||||
|
|||||||
Reference in New Issue
Block a user