From ea64d478995c824c6c0ba80b211b611ed3d31f59 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Mon, 26 Feb 2024 18:50:18 +0530 Subject: [PATCH 1/2] run server with python3 --- docker/Dockerfile.gpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile.gpu b/docker/Dockerfile.gpu index 6b998c9..b3cc44e 100644 --- a/docker/Dockerfile.gpu +++ b/docker/Dockerfile.gpu @@ -30,4 +30,4 @@ COPY whisper_live /app/whisper_live COPY run_server.py /app -CMD ["python", "run_server.py"] +CMD ["python3", "run_server.py"] From 96996110005811a6dde57ba4449bdc704bbc442f Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Mon, 26 Feb 2024 18:50:38 +0530 Subject: [PATCH 2/2] push docker image to ghcr on push to main --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cefd901..351a0ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,7 +77,7 @@ jobs: build-and-push-docker-cpu: needs: [run-tests, check-code-format] runs-on: ubuntu-22.04 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v2 @@ -103,7 +103,7 @@ jobs: needs: [run-tests, check-code-format, build-and-push-docker-cpu] timeout-minutes: 20 runs-on: ubuntu-22.04 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: - uses: actions/checkout@v2