refactor(tts): synthesis clients with stream mode #104
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Image CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Log in to Container registry | |
| if: github.event_name == 'push' | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Docker image | |
| run: | | |
| tag=$(date +%Y%m%d) | |
| if [[ "${{ github.event.head_commit.message }}" =~ \[latest\] ]]; then | |
| tag=latest | |
| fi | |
| docker build . --tag ghcr.io/restsend/rustpbx:$tag | |
| - name: Push Docker image | |
| if: github.event_name == 'push' | |
| run: | | |
| tag=$(date +%Y%m%d) | |
| if [[ "${{ github.event.head_commit.message }}" =~ \[latest\] ]]; then | |
| tag=latest | |
| docker push ghcr.io/restsend/rustpbx:$tag | |
| fi |