fixed environment variable passing
parent
108ecfe1f1
commit
ab8e2b2cfb
3
.env
3
.env
|
|
@ -2,4 +2,5 @@ WEBHOOK_GIT_DATA_PATH=/path/to/webhook-git/data
|
|||
WEBHOOK_SECRET=1234
|
||||
NGINX_NETWORK=network-name
|
||||
WEBHOOK_GIT_NETWORK=network-name
|
||||
GIT_SERVER=git.example.com
|
||||
GIT_SERVER_PROGRAMM=git.example.com
|
||||
GIT_SERVER_ASSETS=git.example.com
|
||||
|
|
@ -7,6 +7,9 @@ services:
|
|||
- static-files:/usr/share/nginx/html
|
||||
networks:
|
||||
- nginx-network
|
||||
environment:
|
||||
- GIT_SERVER_ASSETS=${GIT_SERVER_ASSETS}
|
||||
- GIT_SERVER_ASSETS=${GIT_SERVER_ASSETS}
|
||||
|
||||
webhooks-git:
|
||||
build:
|
||||
|
|
|
|||
|
|
@ -79,17 +79,19 @@ else
|
|||
fi
|
||||
|
||||
# Create or append known_hosts
|
||||
ssh-keyscan -H "${GIT_SERVER_PROGRAMM}" >> "${path_ssh}/known_hosts"
|
||||
ssh-keyscan -H "${GIT_SERVER_ASSETS}" >> "${path_ssh}/known_hosts"
|
||||
ssh-keyscan -H "$GIT_SERVER_PROGRAMM" >> "${path_ssh}/known_hosts"
|
||||
ssh-keyscan -H "$GIT_SERVER_ASSETS" >> "${path_ssh}/known_hosts"
|
||||
|
||||
echo "git and ssh configured."
|
||||
echo "Programm webhook public key (deploy key):"
|
||||
echo "|------------------------------------------------------------------|"
|
||||
echo "|--- Programm webhook public key (deploy key): --------------------|"
|
||||
cat "${path_ssh}"/programm-webhook.deploy.ed25519.pub
|
||||
echo "|------------------------------------------------------------------|"
|
||||
echo "Assets webhook public key (deploy key):"
|
||||
echo "|------------------------------------------------------------------|"
|
||||
echo "|--- Assets webhook public key (deploy key): ----------------------|"
|
||||
cat "${path_ssh}"/assets-webhook.deploy.ed25519.pub
|
||||
echo "|---- Config ------------------------------------------------------|"
|
||||
cat "${path_ssh}"/config
|
||||
echo "|---- known_hosts -------------------------------------------------|"
|
||||
cat "${path_ssh}"/known_hosts
|
||||
echo "|------------------------------------------------------------------|"
|
||||
|
||||
# Initialize assets
|
||||
|
|
|
|||
Loading…
Reference in New Issue