-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 899 Bytes
/
Copy pathdeploy.yml
File metadata and controls
34 lines (28 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy
on:
push:
branches: [main]
permissions:
contents: read
id-token: write # required for OIDC — GitHub mints a short-lived token, no stored secret
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Azure login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
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