Skip to content

Commit

Permalink
Merge branch 'main' of github.com:pluja/whishper
Browse files Browse the repository at this point in the history
  • Loading branch information
pluja committed Aug 26, 2023
2 parents e0bcfa5 + 41725f8 commit d725998
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docker Image CI

on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
directory: ['backend', 'frontend', 'transcription-api']

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Docker images
uses: docker/build-push-action@v4
with:
context: ${{ matrix.directory }}
file: ${{ matrix.directory }}/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ format('{0}/whishper-{1}:latest', secrets.DOCKERHUB_USERNAME, matrix.directory) }}

0 comments on commit d725998

Please sign in to comment.