add docker files
This commit is contained in:
parent
99113c57d9
commit
a28aa46fea
@ -26,16 +26,17 @@ deploy-job:
|
|||||||
- deploiement
|
- deploiement
|
||||||
script:
|
script:
|
||||||
- echo "Déploiement sur Portainer..."
|
- echo "Déploiement sur Portainer..."
|
||||||
|
- echo "Utilisation du token API de Portainer..."
|
||||||
- |
|
- |
|
||||||
TOKEN=$(curl -s -X POST -d "{\"Username\":\"$PORTAINER_USERNAME\",\"Password\":\"$PORTAINER_PASSWORD\"}" \
|
API_KEY="$PORTAINER_API_KEY"
|
||||||
-H "Content-Type: application/json" http://$PORTAINER_URL/api/auth | jq -r .jwt)
|
|
||||||
- |
|
- |
|
||||||
curl -s -X PUT \
|
curl -s -X PUT \
|
||||||
-H "Authorization: Bearer $TOKEN" \
|
-H "Authorization: Bearer $API_KEY" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"Prune": true}' \
|
-d '{"Prune": true}' \
|
||||||
http://$PORTAINER_URL/api/stacks/$STACK_ID/deploy
|
http://$PORTAINER_URL/api/stacks/$STACK_ID/deploy
|
||||||
- echo "Déploiement terminé."
|
- echo "Déploiement terminé."
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- build-job
|
- build-job
|
||||||
- test-job
|
- test-job
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user