From 2d868b4e26fe6224930ac97008621df04d5ee6f0 Mon Sep 17 00:00:00 2001 From: Georg K Date: Thu, 3 Mar 2022 23:05:50 +0300 Subject: [PATCH] fix: entrypoint.sh --- docker-compose.yml | 4 ++-- entrypoint.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c8afe2c..70222b9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,8 +18,8 @@ services: bind: propagation: shared environment: - GIT_USER: "" - GIT_PASS: "" + GIT_USER: ${GIT_USER} + GIT_PASS: ${GIT_PASS} command: - /opt/app/gomodproxy - --dir diff --git a/entrypoint.sh b/entrypoint.sh index 3f9f210..781a707 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,2 +1,3 @@ #!/bin/sh -git config --global url."https://${GIT_USER}:${GIT_PASS}@gitlab.connectone.pro".insteadOf "https://gitlab.connectone.pro" \ No newline at end of file +git config --global url."https://${GIT_USER}:${GIT_PASS}@gitlab.connectone.pro".insteadOf "https://gitlab.connectone.pro" +exec "$@" \ No newline at end of file