File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Azure Bicep
2
+
3
+ on :
4
+ workflow_dispatch
5
+
6
+ env :
7
+ targetEnv : dev
8
+
9
+ jobs :
10
+ build-and-deploy :
11
+ runs-on : ubuntu-latest
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+ steps :
17
+ # Checkout code
18
+ - uses : actions/checkout@main
19
+
20
+ # Log into Azure
21
+
22
+ with :
23
+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
24
+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
25
+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
26
+ enable-AzPSSession : true
27
+
28
+ # Deploy ARM template
29
+ - name : Run ARM deploy
30
+ uses : azure/arm-deploy@v1
31
+ with :
32
+ subscriptionId : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
33
+ resourceGroupName : ${{ secrets.AZURE_RG }}
34
+ template : ./src/InfrastructureAsCode/main.bicep
35
+ parameters : environment=${{ env.targetEnv }}
You can’t perform that action at this time.
0 commit comments