fix: sanitize Portainer API stack response output for improved logging
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 12s
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 12s
This commit is contained in:
@@ -79,8 +79,8 @@ jobs:
|
||||
echo "GET /api/stacks http code: ${STACKS_HTTP_CODE}"
|
||||
echo "GET /api/stacks stderr:"
|
||||
cat "${STACKS_ERR}" || true
|
||||
echo "GET /api/stacks response body:"
|
||||
cat "${STACKS_BODY}" || true
|
||||
echo "GET /api/stacks response (sanitized):"
|
||||
jq -r '.[] | "Id=\(.Id) Name=\(.Name) EndpointId=\(.EndpointId)"' "${STACKS_BODY}" || true
|
||||
|
||||
if [ "${STACKS_CURL_EXIT}" -ne 0 ]; then
|
||||
echo "Failed to reach Portainer API while listing stacks."
|
||||
|
||||
Reference in New Issue
Block a user