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