Merge pull request #5 from inesaranab/ines #3
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: Deploy | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Azure login | |
| uses: azure/login@v2 | |
| with: | |
| auth-type: SERVICE_PRINCIPAL | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Build and push image to ACR | |
| run: az acr build --registry screeningacr1 --image screening:latest . | |
| - name: Update Container App | |
| run: | | |
| az containerapp update \ | |
| --name screening-app \ | |
| --resource-group screening-rg \ | |
| --image screeningacr1.azurecr.io/screening:latest |