Skip to content

Commit

Permalink
docker build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
newtondotcom committed Nov 28, 2023
1 parent 0ff3ff6 commit c6fe685
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 4 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c6fe685

Please sign in to comment.