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 5fcd75f commit a56a95cCopy full SHA for a56a95c
.github/workflows/stackhpc-all-in-one.yml
@@ -154,7 +154,17 @@ jobs:
154
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
155
156
- name: Terraform Apply
157
- run: terraform apply -auto-approve
+ run: |
158
+ for attempt in $(seq 5); do
159
+ if terraform apply -auto-approve; then
160
+ echo "Created infrastructure on attempt $attempt"
161
+ break
162
+ fi
163
+ echo "Failed to create infrastructure on attempt $attempt"
164
+ sleep 10
165
+ terraform destroy -auto-approve
166
+ sleep 60
167
+ done
168
working-directory: ${{ github.workspace }}/terraform/aio
169
env:
170
OS_CLOUD: ${{ inputs.OS_CLOUD }}
0 commit comments