From 6f277789ef50367464db9dbc260a281a5a490ce1 Mon Sep 17 00:00:00 2001 From: Tobias Cudnik Date: Wed, 10 May 2023 09:23:13 +0200 Subject: [PATCH] fixed shallow clone for branches --- scripts/nm-quick.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/nm-quick.sh b/scripts/nm-quick.sh index c66c82a9..ae38675e 100755 --- a/scripts/nm-quick.sh +++ b/scripts/nm-quick.sh @@ -260,10 +260,8 @@ local_install_setup() { ( rm -rf netmaker-tmp mkdir netmaker-tmp cd netmaker-tmp - git clone --depth=1 https://www.github.com/gravitl/netmaker + git clone --single-branch --depth=1 --branch=$BUILD_TAG https://www.github.com/gravitl/netmaker cd netmaker - git checkout $BUILD_TAG - git pull origin $BUILD_TAG docker build --no-cache --build-arg version=$IMAGE_TAG -t gravitl/netmaker:$IMAGE_TAG . if [ "$INSTALL_TYPE" = "ee" ]; then cp compose/docker-compose.ee.yml /root/docker-compose.yml