Skip to content

Commit 8738458

Browse files
committed
swap to env only
1 parent a456f24 commit 8738458

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
jobs:
1313
terraform:
1414
name: Terrform-Deploy
15+
environment: production
1516
runs-on: ubuntu-latest
1617
permissions:
1718
contents: write
@@ -81,29 +82,3 @@ jobs:
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"

0 commit comments

Comments
 (0)