Files
whisperclient/.gitea/workflows/build.yaml
Xav 73ddf4661c
All checks were successful
Build and Push whisper-client / build-and-push (push) Successful in 58s
init
2024-03-06 11:53:36 +01:00

42 lines
1.2 KiB
YAML

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