ci: add rebuild workflow triggered on push to master
Rebuild & Deploy / rebuild (push) Failing after 14s
Rebuild & Deploy / rebuild (push) Failing after 14s
This commit is contained in:
1 parent
dac9d195ec
commit
360fc63c20
1 file changed
+24
@@ -0,0 +1,24 @@
|
||||
name: Rebuild & Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
|
||||
jobs:
|
||||
rebuild:
|
||||
runs-on: runner-voice
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build -t hope-voice-api-voice .
|
||||
|
||||
- name: Restart container
|
||||
run: |
|
||||
docker stop voice 2>/dev/null || true
|
||||
docker rm voice 2>/dev/null || true
|
||||
docker run -d --name voice --network host --restart unless-stopped -v /mnt/user/dev/hope-voice-api/certs:/etc/voice/certs -v /mnt/user/dev/hope-voice-api/skills:/skills -v /mnt/user/dev/hope-voice-api/livekit.yaml:/etc/livekit.yaml:ro -e LIVEKIT_URL=http://localhost:7880 -e AZURE_SPEECH_KEY=${{ secrets.AZURE_SPEECH_KEY }} -e AZURE_SPEECH_REGION=eastus -e AZURE_TTS_VOICE=en-US-Ava:DragonHDOmiLatestNeural -e GEMMA_BASE_URL=http://192.168.86.2:8023/v1 -e GEMMA_MODEL=gemma-4-e4b -e WEB_PORT=9178 hope-voice-api-voice
|
||||
Reference in new issue
Block a user