diff --git a/Dockerfile b/Dockerfile index 8d06bcc..a564fd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/entrypoint b/entrypoint index 58fd7a6..7305573 100755 --- a/entrypoint +++ b/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"