Fix CI/CD workflow
All checks were successful
Docker Build and Push (Multi-architecture) / build-and-push (push) Successful in 23s
All checks were successful
Docker Build and Push (Multi-architecture) / build-and-push (push) Successful in 23s
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user