update readme to cover text to audio #15
This file contains 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: CI/CD to Azure Container Apps | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Azure Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{ secrets.REGISTRY_LOGIN_SERVER }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./Dockerfile | |
push: true | |
tags: ${{ secrets.REGISTRY_LOGIN_SERVER }}/telegram_bot_energy_image:${{ github.sha }} | |
platforms: linux/amd64 | |
- name: Login to Azure | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Deploy to Azure Container Apps | |
run: | | |
az containerapp update --name mybotforenergy --resource-group botsandapps --image ${{ secrets.REGISTRY_LOGIN_SERVER }}/telegram_bot_energy_image:${{ github.sha }} --set-env-vars Telegram_energy_api='${{ secrets.Telegram_energy_api }}' CHANNEL_ID_FOR_FEEDBACK='${{ secrets.CHANNEL_ID_FOR_FEEDBACK }}' OPENAI_API_KEY='${{ secrets.OPENAI_API_KEY }}' ELEVEN_API_KEY='${{ secrets.ELEVEN_API_KEY }}' |