chore: update fallback primary model to gemini-3.5-flash in config.py #11
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: Build and Deploy Backend via Raw Docker | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'backend/**' | |
| - '.github/workflows/deploy-backend.yml' | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: production | |
| steps: | |
| - name: Checkout Source Code | |
| uses: actions/checkout@v4 | |
| - name: Set lowercased repository owner env | |
| run: | | |
| echo "IMAGE_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | |
| - name: Log in to GitHub Container Registry | |
| run: | | |
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin | |
| - name: Build, Tag, and Push Docker Image | |
| run: | | |
| # Build using the backend folder context | |
| docker build -t ghcr.io/${{ env.IMAGE_OWNER }}/mindmap-backend:${{ github.sha }} -t ghcr.io/${{ env.IMAGE_OWNER }}/mindmap-backend:latest ./backend | |
| # Push both tags | |
| docker push ghcr.io/${{ env.IMAGE_OWNER }}/mindmap-backend:${{ github.sha }} | |
| docker push ghcr.io/${{ env.IMAGE_OWNER }}/mindmap-backend:latest | |
| - name: Log in to Azure | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Deploy Revision to Azure Container Apps | |
| uses: azure/container-apps-deploy-action@v1 | |
| with: | |
| resourceGroup: mindmap-rg | |
| containerAppName: mindmap-backend | |
| imageToDeploy: ghcr.io/${{ env.IMAGE_OWNER }}/mindmap-backend:${{ github.sha }} |