File tree Expand file tree Collapse file tree 1 file changed +1
-26
lines changed
Expand file tree Collapse file tree 1 file changed +1
-26
lines changed Original file line number Diff line number Diff line change 1212jobs :
1313 terraform :
1414 name : Terrform-Deploy
15+ environment : production
1516 runs-on : ubuntu-latest
1617 permissions :
1718 contents : write
8182 if : github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
8283 run : terraform apply -auto-approve -input=false
8384 working-directory : ./2-Terraform-AZURE-Services-Creation/4-aks
84-
85- - name : Create GitHub Deployment
86- if : github.ref == 'refs/heads/main'
87- id : deployment
88- uses : chrnorm/deployment-action@v2
89- with :
90- token : ${{ github.token }}
91- environment : production
92- description : " Deployment from main branch"
93-
94- - name : Update Deployment Status (Success)
95- if : success() && github.ref == 'refs/heads/main'
96- uses : chrnorm/deployment-status@v2
97- with :
98- token : ${{ github.token }}
99- deployment-id : ${{ steps.deployment.outputs.deployment_id }}
100- state : " success"
101- environment-url : https://portal.azure.com/#resource/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/thomasthorntoncloud/providers/Microsoft.ContainerService/managedClusters/devopsthehardwayaks
102-
103- - name : Update Deployment Status (Failure)
104- if : failure() && github.ref == 'refs/heads/main'
105- uses : chrnorm/deployment-status@v2
106- with :
107- token : ${{ github.token }}
108- deployment-id : ${{ steps.deployment.outputs.deployment_id }}
109- state : " failure"
You can’t perform that action at this time.
0 commit comments