diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2c65448..f3cb3f4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -104,6 +104,10 @@ jobs: echo "--- 4. Envoi à Portainer ---" RESPONSE=$(curl -s -k \ + --max-time 300 # attend jusqu'à 5 minutes + --retry 3 # réessaie 3 fois si échec + --retry-delay 10 # attend 10 secondes entre chaque tentative + --retry-all-errors # réessaie même sur les erreurs 5xx comme le 504 -o response_body.json \ -w "%{http_code}" \ -X PUT "${PORTAINER_API}/stacks/${STACK_ID}?endpointId=${ENDPOINT_ID}" \