diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..70a5767 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,72 @@ +name: Build and Push Docker Images + +env: + DOCKER_TAG : newtondotcom/smvs:latest + +on: + workflow_dispatch: + +jobs: + dockeramd64: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push AMD64 + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ env.DOCKER_TAG }}-amd64 + platforms: linux/amd64 + + dockerarmv7: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push ARMv7 + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ env.DOCKER_TAG }}-armv7 + platforms: linux/arm/v7 + + dockerarm64: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push ARM64 + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ env.DOCKER_TAG }}-arm64 + platforms: linux/arm64/v8 \ No newline at end of file diff --git a/setup.sh b/setup.sh index 64032da..1329dbd 100644 --- a/setup.sh +++ b/setup.sh @@ -1,7 +1,7 @@ -pip3 install git+https://github.com/m-bain/whisperx.git -pip3 install ffmpeg-python -pip3 install opencv-python -pip3 install moviepy +pip install git+https://github.com/m-bain/whisperx.git +pip install ffmpeg-python +pip install opencv-python +pip install moviepy apt install ffmpeg mkdir temp mkdir output \ No newline at end of file