add docker files
This commit is contained in:
parent
e20a92368e
commit
756fc23cfe
@ -38,10 +38,15 @@ deploy-job:
|
||||
|
||||
echo "Déclenchement du redeploiement de la stack Git sur Portainer..."
|
||||
|
||||
# Construire le corps de la requête JSON
|
||||
DATA="{\"endpointId\": $ENDPOINT_ID}"
|
||||
|
||||
# Exécuter la requête pour redeployer la stack Git
|
||||
RESPONSE=$(curl -s -k -w "%{http_code}" -X POST \
|
||||
RESPONSE=$(curl -s -k -w "%{http_code}" -X PUT \
|
||||
-H "Authorization: Bearer $PORTAINER_API_KEY" \
|
||||
"https://$PORTAINER_URL/api/stacks/$STACK_ID/git/redeploy?endpointId=$ENDPOINT_ID")
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$DATA" \
|
||||
"https://$PORTAINER_URL/api/stacks/$STACK_ID/git/redeploy")
|
||||
|
||||
# Extraire le code HTTP de la réponse
|
||||
HTTP_CODE="${RESPONSE: -3}"
|
||||
@ -54,3 +59,4 @@ deploy-job:
|
||||
fi
|
||||
|
||||
echo "Déploiement terminé avec succès."
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user