-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 1.03 KB
/
deploy.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
36
37
38
39
40
41
42
name: Build and deploy .NET application to Azure Container Apps
on:
push:
branches:
- deploy
env:
# alphanumeric string under 14 characters
RESOURCE_GROUP_NAME: store
# specify your preferred region
REGION: westus
jobs:
build:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/azure-dev-cli-apps:latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Log in with Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AzureSPN }}
- name: Azure Dev Provision
run: azd provision --no-prompt
env:
AZURE_ENV_NAME: ${{ env.RESOURCE_GROUP_NAME }}
AZURE_LOCATION: ${{ env.REGION }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Azure Dev Deploy
run: azd deploy --no-prompt
env:
AZURE_ENV_NAME: ${{ env.RESOURCE_GROUP_NAME }}
AZURE_LOCATION: ${{ env.REGION }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}