Skip to content

Commit 8bd4078

Browse files
committed
[NDR-232] readding plan
1 parent 51e3ebc commit 8bd4078

File tree

1 file changed

+27
-23
lines changed

1 file changed

+27
-23
lines changed

.github/workflows/deploy-sandbox.yml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
SANDBOX_NAME: ${{ github.event.inputs.sandbox_name }}
3636

3737
# Checkout the repository to the GitHub Actions runner
38-
# - name: Checkout Base
39-
# uses: actions/checkout@v5
40-
# with:
41-
# ref: main
38+
- name: Checkout Base
39+
uses: actions/checkout@v5
40+
with:
41+
ref: main
4242

4343
- name: Configure AWS Credentials
4444
uses: aws-actions/configure-aws-credentials@v5
@@ -58,25 +58,29 @@ jobs:
5858
terraform_version: 1.11.4
5959
terraform_wrapper: false
6060

61-
# - name: Terraform Init Base
62-
# id: base_init
63-
# run: terraform init -backend-config=backend.conf
64-
# working-directory: ./infrastructure
65-
# shell: bash
66-
# - name: Terraform Set Workspace Base
67-
# id: base_workspace
68-
# run: terraform workspace select -or-create ${{ github.event.inputs.sandbox_name}}
69-
# working-directory: ./infrastructure
70-
# shell: bash
71-
# - name: Terraform Plan Base
72-
# id: base_plan
73-
# run: |
74-
# terraform plan -input=false -no-color -var-file="${{vars.TF_VARS_FILE}}" -out tf-base.plan
75-
# working-directory: ./infrastructure
76-
# shell: bash
77-
# - name: Terraform Apply Base
78-
# run: terraform apply -auto-approve -input=false tf-base.plan
79-
# working-directory: ./infrastructure
61+
- name: Terraform Init Base
62+
id: base_init
63+
run: terraform init -backend-config=backend.conf
64+
working-directory: ./infrastructure
65+
shell: bash
66+
67+
- name: Terraform Set Workspace Base
68+
id: base_workspace
69+
run: terraform workspace select -or-create ${{ github.event.inputs.sandbox_name}}
70+
working-directory: ./infrastructure
71+
shell: bash
72+
73+
- name: Terraform Plan Base
74+
id: base_plan
75+
run: |
76+
terraform plan -input=false -no-color -var-file="${{vars.TF_VARS_FILE}}" -out tf-base.plan
77+
working-directory: ./infrastructure
78+
shell: bash
79+
80+
- name: Terraform Apply Base
81+
run: terraform apply -auto-approve -input=false tf-base.plan
82+
working-directory: ./infrastructure
83+
8084
- name: Checkout Branch
8185
uses: actions/checkout@v5
8286
with:

0 commit comments

Comments
 (0)