Skip to content

Commit 0716aef

Browse files
committed
[NDR-108] reverting the workflow
1 parent fbff22f commit 0716aef

File tree

1 file changed

+28
-24
lines changed

1 file changed

+28
-24
lines changed

.github/workflows/terraform-deploy-feature-to-sandbox.yml

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
environment: ${{ github.event.inputs.environment }}
3030

3131
steps:
32-
# - name: Checkout Base
33-
# uses: actions/checkout@v4
34-
# with:
35-
# ref: main
32+
- name: Checkout Base
33+
uses: actions/checkout@v4
34+
with:
35+
ref: main
3636

3737
- name: Configure AWS Credentials
3838
uses: aws-actions/configure-aws-credentials@v4
@@ -52,25 +52,29 @@ jobs:
5252
terraform_version: 1.11.4
5353
terraform_wrapper: false
5454

55-
# - name: Terraform Init Base
56-
# id: base_init
57-
# run: terraform init -backend-config=backend.conf
58-
# working-directory: ./infrastructure
59-
# shell: bash
60-
# - name: Terraform Set Workspace Base
61-
# id: base_workspace
62-
# run: terraform workspace select -or-create ${{ github.event.inputs.sandboxWorkspace}}
63-
# working-directory: ./infrastructure
64-
# shell: bash
65-
# - name: Terraform Plan Base
66-
# id: base_plan
67-
# run: |
68-
# terraform plan -input=false -no-color -var-file="${{vars.TF_VARS_FILE}}" -out tf-base.plan
69-
# working-directory: ./infrastructure
70-
# shell: bash
71-
# - name: Terraform Apply Base
72-
# run: terraform apply -auto-approve -input=false tf-base.plan
73-
# working-directory: ./infrastructure
55+
- name: Terraform Init Base
56+
id: base_init
57+
run: terraform init -backend-config=backend.conf
58+
working-directory: ./infrastructure
59+
shell: bash
60+
61+
- name: Terraform Set Workspace Base
62+
id: base_workspace
63+
run: terraform workspace select -or-create ${{ github.event.inputs.sandboxWorkspace}}
64+
working-directory: ./infrastructure
65+
shell: bash
66+
67+
- name: Terraform Plan Base
68+
id: base_plan
69+
run: |
70+
terraform plan -input=false -no-color -var-file="${{vars.TF_VARS_FILE}}" -out tf-base.plan
71+
working-directory: ./infrastructure
72+
shell: bash
73+
74+
- name: Terraform Apply Base
75+
run: terraform apply -auto-approve -input=false tf-base.plan
76+
working-directory: ./infrastructure
77+
7478
- name: Checkout Branch
7579
uses: actions/checkout@v4
7680
with:
@@ -83,7 +87,7 @@ jobs:
8387

8488
- name: Terraform Init
8589
id: init
86-
run: terraform init -backend-config=backend.conf -reconfigure
90+
run: terraform init -backend-config=backend.conf
8791
working-directory: ./infrastructure
8892
shell: bash
8993

0 commit comments

Comments
 (0)