mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 13:44:37 +08:00
fixed shallow clone for branches
This commit is contained in:
parent
7033ddb1d5
commit
6f277789ef
1 changed files with 1 additions and 3 deletions
|
@ -260,10 +260,8 @@ local_install_setup() { (
|
||||||
rm -rf netmaker-tmp
|
rm -rf netmaker-tmp
|
||||||
mkdir netmaker-tmp
|
mkdir netmaker-tmp
|
||||||
cd 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
|
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 .
|
docker build --no-cache --build-arg version=$IMAGE_TAG -t gravitl/netmaker:$IMAGE_TAG .
|
||||||
if [ "$INSTALL_TYPE" = "ee" ]; then
|
if [ "$INSTALL_TYPE" = "ee" ]; then
|
||||||
cp compose/docker-compose.ee.yml /root/docker-compose.yml
|
cp compose/docker-compose.ee.yml /root/docker-compose.yml
|
||||||
|
|
Loading…
Reference in a new issue