Skip to content

Commit c026cef

Browse files
committed
ci: Simplify GitHub Actions workflow for ACA deployment
1 parent 23b77aa commit c026cef

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/azure-dev.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
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
23
on:
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
129
permissions:
1310
id-token: write
1411
contents: read
1512

16-
1713
jobs:
18-
build:
14+
deploy:
1915
runs-on: ubuntu-latest
2016
env:
2117
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
@@ -26,8 +22,10 @@ jobs:
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 `
@@ -36,10 +34,6 @@ jobs:
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

0 commit comments

Comments
 (0)