Skip to content

Commit 834a331

Browse files
Update vent_creation.yml
1 parent b1a51b8 commit 834a331

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/vent_creation.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
2121
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
2222

23-
outputs:
24-
plan-status: ${{ steps.plan.outcome }}
25-
2623
steps:
2724
- name: Checkout repository
2825
uses: actions/checkout@v4
@@ -43,21 +40,23 @@ jobs:
4340
run: terraform init
4441

4542
- name: Terraform Plan
46-
id: plan
4743
run: terraform plan -out=tfplan
4844

49-
- name: Upload tfplan Artifact
45+
- name: Upload Terraform Artifacts
5046
uses: actions/upload-artifact@v4
5147
with:
52-
name: tfplan
53-
path: tfplan
48+
name: terraform-artifacts
49+
path: |
50+
tfplan
51+
.terraform.lock.hcl
52+
.terraform/
5453
5554
5655
terraform-apply:
5756
name: Terraform Apply (after approval)
5857
needs: terraform-plan
5958
runs-on: ubuntu-latest
60-
environment: prod-approval # 👈 Manual approval here
59+
environment: production # 👈 Approval will be required here
6160

6261
env:
6362
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
@@ -81,10 +80,10 @@ jobs:
8180
tenant-id: ${{ secrets.ARM_TENANT_ID }}
8281
subscription-id: ${{ secrets.ARM_SUBSCRIPTION_ID }}
8382

84-
- name: Download tfplan Artifact
83+
- name: Download Terraform Artifacts
8584
uses: actions/download-artifact@v4
8685
with:
87-
name: tfplan
86+
name: terraform-artifacts
8887
path: .
8988

9089
- name: Terraform Apply

0 commit comments

Comments
 (0)