ff
All checks were successful
ci/woodpecker/push/gitleaks Pipeline was successful
ci/woodpecker/pr/gitleaks Pipeline was successful
ci/woodpecker/push/ansible-lint Pipeline was successful
ci/woodpecker/pr/ansible-lint Pipeline was successful

This commit is contained in:
Michael Grote 2024-07-25 23:38:57 +02:00
parent dd95e7493e
commit 107fcdb2be

View file

@ -14,18 +14,18 @@ echo ${GREEN}Run checks...${RESET}
# TODO ghier noch check output mit haken dran in grün
if ! [ -f "./vault-pass" ]; then
echo "${RED}Vault-Pass File is missing!${RESET}"
echo -e "${RED}Vault-Pass File is missing!${RESET}"
exit 1
fi
if ! [ -f "./id_ed25519" ]; then
echo "${RED}SSH-Private-Key is missing!${RESET}"
echo -e "${RED}SSH-Private-Key is missing!${RESET}"
exit 1
fi
echo ${GREEN}Pull image...${RESET}
echo -e ${GREEN}Pull image...${RESET}
docker pull --quiet ${IMAGE}
echo ${GREEN}Start session...${RESET}
echo -e ${GREEN}Start session...${RESET}
docker run -it -v $PWD:/ansible-homeserver -w /ansible-homeserver ${IMAGE} tmux new -t ansible && git rev-parse --abbrev-ref HEAD && git config --global --add safe.directory /ansible-homeserver
# todo shellcheck