Skip to content
Snippets Groups Projects
Commit 39062079 authored by jurgenhaas's avatar jurgenhaas
Browse files

Optionaly push new project to the remote repository if L3D_GIT_REMOTE is defined

parent 23b6cc72
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,13 @@ function create { ...@@ -68,6 +68,13 @@ function create {
git add .* git add .*
git commit -am "After site install" 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 # Cleanup
if [[ $L3D_CLEANUP -eq 1 ]]; then if [[ $L3D_CLEANUP -eq 1 ]]; then
docker-compose stop docker-compose stop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment