Fix CI/CD workflow
All checks were successful
Docker Build and Push (Multi-architecture) / build-and-push (push) Successful in 23s

This commit is contained in:
2025-09-16 12:29:59 +00:00
parent 3a2578f9eb
commit b1e8f1d676

View File

@@ -48,13 +48,18 @@ jobs:
STACK_ID=$(echo $STACK_RESPONSE | jq -r '.[] | select(.Name == "${{ vars.STACK_NAME }}") | .Id')
curl -X PUT \
"${{ vars.PORTAINER_URL }}/api/stacks/$STACK_ID" \
curl -v -X PUT \
"${{ vars.PORTAINER_URL }}/api/stacks/$STACK_ID?endpointId=16" \
-H "X-API-Key: ${{ secrets.PORTAINER_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"pullImage": true,
"prune": true
"prune": true,
"repositoryReferenceName": "refs/heads/main",
"env": [
{"name": "IMAGE_TAG", "value": "${{ github.sha }}"},
{"name": "DEPLOY_TIMESTAMP", "value": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"}
]
}'
echo "Deployment triggered for stack ID: $STACK_ID"