File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed
Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 1- # Run when commits are pushed to master
1+ # Azure Container Apps deployment via Azure Developer CLI (azd)
2+ # Triggered on push to master or manual dispatch
23on :
34 workflow_dispatch :
45 push :
5- # Run when commits are pushed to mainline branch (main or master)
6- # Set this to the mainline branch you are using
76 branches :
87 - master
98
10- # Set up permissions for deploying with secretless Azure federated credentials
11- # https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
129permissions :
1310 id-token : write
1411 contents : read
1512
16-
1713jobs :
18- build :
14+ deploy :
1915 runs-on : ubuntu-latest
2016 env :
2117 AZURE_CLIENT_ID : ${{ vars.AZURE_CLIENT_ID }}
2622 steps :
2723 - name : Checkout
2824 uses : actions/checkout@v4
25+
2926 - name : Install azd
3027 uses : Azure/setup-azd@v2
28+
3129 - name : Log in with Azure (Federated Credentials)
3230 run : |
3331 azd auth login `
3634 --tenant-id "$Env:AZURE_TENANT_ID"
3735 shell : pwsh
3836
39-
40- - name : Provision Infrastructure
41- run : azd provision --no-prompt
42-
43- - name : Deploy Application
44- run : azd deploy --no-prompt
37+ - name : Deploy to Azure Container Apps
38+ run : azd up --no-prompt
4539
You can’t perform that action at this time.
0 commit comments