We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d9e620 commit 6329f1cCopy full SHA for 6329f1c
.github/workflows/stackhpc-all-in-one.yml
@@ -177,7 +177,17 @@ jobs:
177
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
178
179
- name: Terraform Apply
180
- run: terraform apply -auto-approve
+ run: |
181
+ for attempt in $(seq 5); do
182
+ if terraform apply -auto-approve; then
183
+ echo "Created infrastructure on attempt $attempt"
184
+ break
185
+ fi
186
+ echo "Failed to create infrastructure on attempt $attempt"
187
+ sleep 10
188
+ terraform destroy -auto-approve
189
+ sleep 60
190
+ done
191
working-directory: ${{ github.workspace }}/terraform/aio
192
env:
193
OS_CLOUD: ${{ inputs.OS_CLOUD }}
0 commit comments