Skip to content

Commit 7741b36

Browse files
committed
try adding terraform to workflow
1 parent 035e8ce commit 7741b36

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/firestore.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ jobs:
177177
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/firestore.plist.gpg \
178178
Firestore/Example/App/GoogleService-Info.plist "$plist_secret"
179179

180+
# create composite indexes with Terraform
181+
- name: Setup Terraform
182+
uses: hashicorp/setup-terraform@v2
183+
- name: Terraform Init
184+
run: terraform init
185+
continue-on-error: true
186+
- name: Terraform Apply
187+
run: |
188+
python scripts/decrypt_project_info.py Firestore/Example/App/GoogleService-Info.plist
189+
terraform apply -var-file=Firestore/Example/App/project_info.json -auto-approve
190+
rm Firestore/Example/App/project_info.json
191+
180192
- name: Setup build
181193
run: scripts/install_prereqs.sh Firestore ${{ runner.os }} cmake
182194

0 commit comments

Comments
 (0)