From b01bc7643696a55214fc68ee8cadb802c2bf9dab Mon Sep 17 00:00:00 2001 From: Andre Challier Date: Wed, 27 Mar 2024 19:24:16 +0100 Subject: [PATCH] printing some variables --- docker-compose.yml | 6 +++--- webhooks-git/entrypoint.sh | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 51aef6f..359f694 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,9 +8,9 @@ services: networks: - nginx-network environment: - - GIT_SERVER_PROGRAMM=${GIT_SERVER_PROGRAMM} - - GIT_SERVER_ASSETS=${GIT_SERVER_ASSETS} - - WEBHOOK_SECRET=${WEBHOOK_SECRET} + GIT_SERVER_PROGRAMM=${GIT_SERVER_PROGRAMM} + GIT_SERVER_ASSETS=${GIT_SERVER_ASSETS} + WEBHOOK_SECRET=${WEBHOOK_SECRET} webhooks-git: build: diff --git a/webhooks-git/entrypoint.sh b/webhooks-git/entrypoint.sh index d9756cf..646d189 100644 --- a/webhooks-git/entrypoint.sh +++ b/webhooks-git/entrypoint.sh @@ -79,7 +79,11 @@ else fi # Create or append known_hosts + +echo "Validating: $GIT_SERVER_PROGRAMM" ssh-keyscan -H "$GIT_SERVER_PROGRAMM" >> "${path_ssh}"/known_hosts + +echo "Validating: $GIT_SERVER_ASSETS" ssh-keyscan -H "$GIT_SERVER_ASSETS" >> "${path_ssh}"/known_hosts echo "git and ssh configured."