CI + Dev-Workspace: disable automatic rollout and setup new Workspace #145
1 changed files with 5 additions and 8 deletions
13
devspace.sh
13
devspace.sh
|
@ -11,7 +11,6 @@ YELLOW='\033[0;33m'
|
||||||
|
|
||||||
echo -e "${GREEN}Run checks...${RESET}"
|
echo -e "${GREEN}Run checks...${RESET}"
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -20,9 +19,13 @@ if ! [ -f "./id_ed25519" ]; then
|
||||||
echo -e "${RED}SSH-Private-Key is missing!${RESET}"
|
echo -e "${RED}SSH-Private-Key is missing!${RESET}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! [ -f "~/.git-credentials" ]; then
|
if ! [ -f "$HOME/.git-credentials" ]; then
|
||||||
echo -e "${YELLOW}~/.git-credentials not found!${RESET}"
|
echo -e "${YELLOW}~/.git-credentials not found!${RESET}"
|
||||||
fi
|
fi
|
||||||
|
if ! [ $(id -u) -eq "1000"]; then
|
||||||
|
echo -e "${RED}Wrong UID (!=1000)${RESET}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
docker pull ${IMAGE}
|
docker pull ${IMAGE}
|
||||||
|
|
||||||
|
@ -30,9 +33,3 @@ docker run -it \
|
||||||
-v "$PWD:/home/ansible-dev/ansible-homeserver" \
|
-v "$PWD:/home/ansible-dev/ansible-homeserver" \
|
||||||
-v "$HOME/.git-credentials:/home/ansible-dev/.git-credentials" \
|
-v "$HOME/.git-credentials:/home/ansible-dev/.git-credentials" \
|
||||||
-w /home/ansible-dev/ansible-homeserver ${IMAGE}
|
-w /home/ansible-dev/ansible-homeserver ${IMAGE}
|
||||||
|
|
||||||
|
|
||||||
# #credential reinmountern prufen
|
|
||||||
# touch ff && git add . && gcm && git push
|
|
||||||
# alles auf user ansible-dev umstellen
|
|
||||||
# test if local user-id=1000, wennd as geht imdpckerffiel id auf 1000 stellen
|
|
||||||
|
|
Loading…
Reference in a new issue