fix: add network info logging before Portainer deployment
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 11s
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 11s
This commit is contained in:
@@ -48,6 +48,14 @@ jobs:
|
|||||||
echo "STACK_NAME=${STACK_NAME}"
|
echo "STACK_NAME=${STACK_NAME}"
|
||||||
echo "PORTAINER_ENDPOINT_ID=${PORTAINER_ENDPOINT_ID}"
|
echo "PORTAINER_ENDPOINT_ID=${PORTAINER_ENDPOINT_ID}"
|
||||||
|
|
||||||
|
echo "Current runner network info:"
|
||||||
|
if command -v ip >/dev/null 2>&1; then
|
||||||
|
ip -4 addr show || true
|
||||||
|
ip route || true
|
||||||
|
else
|
||||||
|
hostname -I || true
|
||||||
|
fi
|
||||||
|
|
||||||
PORTAINER_HOST=$(printf '%s' "${PORTAINER_URL}" | sed -E 's#^[a-zA-Z]+://##; s#/.*$##; s/:.*$//')
|
PORTAINER_HOST=$(printf '%s' "${PORTAINER_URL}" | sed -E 's#^[a-zA-Z]+://##; s#/.*$##; s/:.*$//')
|
||||||
echo "Resolved host target: ${PORTAINER_HOST}"
|
echo "Resolved host target: ${PORTAINER_HOST}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user