-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 987 Bytes
/
deployment.yml
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
35
name: sonic-connect deployment
on:
# Automatically trigger it when detected changes in repo
push:
# Branches to look out for changes on
branches:
# Listen for changes on main branch
[ main ]
# Allow manually trigger of the jobs
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@v4
- name: Sign in via Azure CLI
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Build and deploy Container App
uses: azure/container-apps-deploy-action@v1
with:
appSourcePath: ${{ github.workspace }}
imageToBuild: sonicconnectacr.azurecr.io/sonic-connect:latest
acrName: sonicconnectacr
acrUsername: ${{ secrets.REGISTRY_USERNAME }}
acrPassword: ${{ secrets.REGISTRY_PASSWORD }}
resourceGroup: sonic-connect
containerAppName: sonic-connect-container-app