Skip to content

Merge pull request #5 from inesaranab/ines #3

Merge pull request #5 from inesaranab/ines

Merge pull request #5 from inesaranab/ines #3

Workflow file for this run

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