ff
This commit is contained in:
parent
c52e20ad73
commit
76faa81d16
1 changed files with 6 additions and 7 deletions
13
devspace.sh
13
devspace.sh
|
@ -4,15 +4,14 @@ IMAGE="registry.mgrote.net/ansible-devspace:latest"
|
||||||
|
|
||||||
# Farben
|
# Farben
|
||||||
# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
|
# https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux
|
||||||
# todo farben kaputt
|
|
||||||
RESET='\033[0m'
|
RESET='\033[0m'
|
||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
GREEN='\033[0;32m'
|
GREEN='\033[0;32m'
|
||||||
Yellow='\033[0;33m'
|
YELLOW='\033[0;33m'
|
||||||
|
|
||||||
echo ${GREEN}Run checks...${RESET}
|
echo -e "${GREEN}Run checks...${RESET}"
|
||||||
|
|
||||||
# TODO ghier noch check output mit haken dran in grün
|
# TODO hier noch check output mit Haken dran in grün
|
||||||
if ! [ -f "./vault-pass" ]; then
|
if ! [ -f "./vault-pass" ]; then
|
||||||
echo -e "${RED}Vault-Pass File is missing!${RESET}"
|
echo -e "${RED}Vault-Pass File is missing!${RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -22,13 +21,13 @@ if ! [ -f "./id_ed25519" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e ${GREEN}Pull image...${RESET}
|
echo -e "${GREEN}Pull image...${RESET}"
|
||||||
docker pull --quiet ${IMAGE}
|
docker pull --quiet ${IMAGE}
|
||||||
|
|
||||||
echo -e ${GREEN}Start session...${RESET}
|
echo -e "${GREEN}Start session...${RESET}"
|
||||||
docker run -it \
|
docker run -it \
|
||||||
-v $PWD:/ansible-homeserver \
|
-v $PWD:/ansible-homeserver \
|
||||||
-w /ansible-homeserver ${IMAGE} \
|
-w /ansible-homeserver ${IMAGE} \
|
||||||
echo Branch: $(git rev-parse --abbrev-ref HEAD) && git config --global --add safe.directory /ansible-homeserver && /bin/bash
|
/bin/bash -c "echo Branch: \$(git rev-parse --abbrev-ref HEAD) && git config --global --add safe.directory /ansible-homeserver && /bin/bash"
|
||||||
|
|
||||||
# todo shellcheck
|
# todo shellcheck
|
||||||
|
|
Loading…
Reference in a new issue