Debug
This commit is contained in:
parent
e0f7fe3fee
commit
811069b1b3
@ -1,6 +1,6 @@
|
|||||||
FROM python:3.11.1-slim
|
FROM python:3.11.1-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y git \
|
RUN apt-get update && apt-get install -y git toilet \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# renovate: datasource=pypi depName=ansible
|
# renovate: datasource=pypi depName=ansible
|
||||||
|
14
entrypoint
14
entrypoint
@ -3,19 +3,27 @@
|
|||||||
check=${PLUGIN_CHECK_SYNTAX:-false}
|
check=${PLUGIN_CHECK_SYNTAX:-false}
|
||||||
verbosity=${PLUGIN_VERBOSITY:-0}
|
verbosity=${PLUGIN_VERBOSITY:-0}
|
||||||
|
|
||||||
|
C_RESET="\e[39m"
|
||||||
|
C_RED="\e[31m"
|
||||||
|
C_YELLOW="\e[33m"
|
||||||
|
C_BLUE="\e[34m"
|
||||||
|
|
||||||
run_command(){
|
run_command(){
|
||||||
echo "➡️ $@"
|
echo "➡️ $@"
|
||||||
$@
|
$@
|
||||||
}
|
}
|
||||||
|
echo -e "${C_BLUE}"
|
||||||
|
toilet -f smblock Woodpecker Ansible
|
||||||
|
toilet -f smblock " Runner"
|
||||||
|
echo -e "${C_RESET}"
|
||||||
|
|
||||||
if [ -z "$PLUGIN_PLAYBOOK" ]; then
|
if [ -z "$PLUGIN_PLAYBOOK" ]; then
|
||||||
echo -e "⚠️ \e[31m'playbook' setting not defined, ABORT!\e[39m"
|
echo -e "⚠️ ${C_RED}'playbook' setting not defined, ABORT!${C_RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$PLUGIN_PRIVATE_KEY" ]; then
|
if [ -z "$PLUGIN_PRIVATE_KEY" ]; then
|
||||||
echo -e "⚠️ \e[31m[WARN] 'private_key' setting not defined !\e[39m"
|
echo -e "⚠️ ${C_YELLOW}[WARN] 'private_key' setting not defined !${C_RESET}"
|
||||||
else
|
else
|
||||||
|
|
||||||
run_command "mkdir /root/.ssh"
|
run_command "mkdir /root/.ssh"
|
||||||
|
Loading…
Reference in New Issue
Block a user