init
All checks were successful
Build and Push whisper-client / build-and-push (push) Successful in 58s

This commit is contained in:
Xav
2024-03-06 11:53:36 +01:00
commit 73ddf4661c
9 changed files with 436 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
name: Build and Push whisper-client
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: nuc
steps:
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Registry
uses: docker/login-action@v1
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
registry: git.xav.ovh/xav
- name: Build and Push Docker Image for local files
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: true
tags: git.xav.ovh/xav/whisperclient:latest
- name: Run whisper whisperclient
env:
WHISPER_URL: ${{ secrets.WHISPER_URL }}
WHISPER_BASICAUTH: ${{ secrets.WHISPER_BASICAUTH }}
FLASK_SECRET_KEY: ${{ secrets.FLASK_SECRET_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
docker compose down ; docker compose up -d