This commit is contained in:
@@ -34,7 +34,11 @@ jobs:
|
||||
|
||||
- name: Deploy to Portainer
|
||||
run: |
|
||||
curl -s -X POST "http://192.168.1.17:9000/api/stacks/27/redeploy" \
|
||||
-H "X-API-Key: ${{ secrets.PORTAINER_API_KEY }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{}'
|
||||
curl --location --request PUT 'https://192.168.1.17:9443/api/stacks/27?endpointId=2' \
|
||||
--header 'X-API-Key: ${{ secrets.PORTAINER_API_KEY }}' \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data '{
|
||||
"prune": false,
|
||||
"pullImage": true,
|
||||
"stackFileContent": "version: '\''3.8'\''\nservices:\n jarvis:\n image: gitea.abzk.fr/mrzaiko/jarvis:latest\n container_name: jarvis"
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user