From 39062079d489ea632ef4e3cb61f95218b64fbd4d Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Tue, 24 Sep 2019 13:52:41 +0200 Subject: [PATCH] Optionaly push new project to the remote repository if L3D_GIT_REMOTE is defined --- start.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/start.sh b/start.sh index 07676d1..1dc4095 100755 --- a/start.sh +++ b/start.sh @@ -68,6 +68,13 @@ function create { git add .* git commit -am "After site install" + # Push to remote git repository + if [[ -n ${L3D_GIT_REMOTE} ]]; then + git remote add origin "$L3D_GIT_REMOTE" + git pull + git push + fi + # Cleanup if [[ $L3D_CLEANUP -eq 1 ]]; then docker-compose stop -- GitLab