diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index ffd259d..662974b 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -50,6 +50,11 @@ jobs: - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v2 + # Workaround for failing builds: https://github.com/docker/build-push-action/issues/761#issuecomment-1383822381 + # TODO remove workaround when fixed + with: + driver-opts: | + image=moby/buildkit:v0.10.6 - name: Login to DockerHub uses: docker/login-action@v2 diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index c21a873..69cedc1 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -107,6 +107,11 @@ jobs: - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v2 + # Workaround for failing builds: https://github.com/docker/build-push-action/issues/761#issuecomment-1383822381 + # TODO remove workaround when fixed + with: + driver-opts: | + image=moby/buildkit:v0.10.6 - name: Login to DockerHub uses: docker/login-action@v2 @@ -136,7 +141,7 @@ jobs: # Note: tags has to be all lower-case pull: true tags: | - scit0/extract_otp_secrets:buster + ghcr.io/scito/extract_otp_secrets:buster push: true # # https://stackoverflow.com/a/61155718/1663871 @@ -153,7 +158,7 @@ jobs: - name: Run Pyinstaller in container run: | # TODO use local docker image https://stackoverflow.com/a/61155718/1663871 - docker run --pull always --entrypoint /bin/bash --rm -v "$(pwd)":/files -w /files scit0/extract_otp_secrets:buster -c 'apt-get update && apt-get -y install binutils && pip install -U -r /files/requirements.txt && pip install pyinstaller && pyinstaller -y --add-data /usr/local/__yolo_v3_qr_detector/:__yolo_v3_qr_detector/ --onefile --name extract_otp_secrets_linux_x86_64 --distpath /files/dist/ /files/src/extract_otp_secrets.py' + docker run --pull always --entrypoint /bin/bash --rm -v "$(pwd)":/files -w /files ghcr.io/scito/extract_otp_secrets:buster -c 'apt-get update && apt-get -y install binutils && pip install -U -r /files/requirements.txt && pip install pyinstaller && pyinstaller -y --add-data /usr/local/__yolo_v3_qr_detector/:__yolo_v3_qr_detector/ --onefile --name extract_otp_secrets_linux_x86_64 --distpath /files/dist/ /files/src/extract_otp_secrets.py' - name: Smoke tests run: |