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 b540bfd commit 06f504cCopy full SHA for 06f504c
.github/workflows/stackhpc.yml
@@ -107,7 +107,12 @@ jobs:
107
. venv/bin/activate
108
. environments/.stackhpc/activate
109
cd "$STACKHPC_TF_DIR"
110
- tofu apply -auto-approve -var-file="${{ env.CI_CLOUD }}.tfvars"
+ max_retries=3
111
+ delay=30
112
+ for i in $(seq 1 $max_retries); do
113
+ tofu apply -auto-approve -var-file="${{ env.CI_CLOUD }}.tfvars" && break
114
+ [ "$i" -lt "$max_retries" ] && sleep $delay || exit 1
115
+ done
116
117
- name: Delete infrastructure if provisioning failed
118
run: |
0 commit comments