updated db connection method - Adithya S K #4
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: Trigger auto deployment for rag-saas | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'backend/**' | |
- '.github/workflows/rag-saas-AutoDeployTrigger-558fb23c-e0c6-46c5-a865-6f621534495e.yml' | |
workflow_dispatch: | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Azure Login | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.RAGSAAS_AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.RAGSAAS_AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.RAGSAAS_AZURE_SUBSCRIPTION_ID }} | |
- name: Build and push container image to registry | |
uses: azure/container-apps-deploy-action@v2 | |
with: | |
appSourcePath: ${{ github.workspace }}/backend | |
registryUrl: ${{ secrets.RAGSAAS_REGISTRY_URL }} | |
registryUsername: ${{ secrets.RAGSAAS_REGISTRY_USERNAME }} | |
registryPassword: ${{ secrets.RAGSAAS_REGISTRY_PASSWORD }} | |
containerAppName: rag-saas | |
resourceGroup: structify | |
imageToBuild: ${{ secrets.RAGSAAS_REGISTRY_URL }}/rag-saas:${{ github.sha }} | |
dockerfilePath: Dockerfile |