Debug
This commit is contained in:
parent
e0f7fe3fee
commit
811069b1b3
@ -1,6 +1,6 @@
|
||||
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/*
|
||||
|
||||
# renovate: datasource=pypi depName=ansible
|
||||
|
14
entrypoint
14
entrypoint
@ -3,19 +3,27 @@
|
||||
check=${PLUGIN_CHECK_SYNTAX:-false}
|
||||
verbosity=${PLUGIN_VERBOSITY:-0}
|
||||
|
||||
C_RESET="\e[39m"
|
||||
C_RED="\e[31m"
|
||||
C_YELLOW="\e[33m"
|
||||
C_BLUE="\e[34m"
|
||||
|
||||
run_command(){
|
||||
echo "➡️ $@"
|
||||
$@
|
||||
}
|
||||
|
||||
echo -e "${C_BLUE}"
|
||||
toilet -f smblock Woodpecker Ansible
|
||||
toilet -f smblock " Runner"
|
||||
echo -e "${C_RESET}"
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
run_command "mkdir /root/.ssh"
|
||||
|
Loading…
Reference in New Issue
Block a user