diff --git a/scripts/kubeadm_test.sh b/scripts/kubeadm_test.sh index ee8692f..5c6344f 100644 --- a/scripts/kubeadm_test.sh +++ b/scripts/kubeadm_test.sh @@ -13,7 +13,7 @@ install_version="contiv-${BUILD_VERSION:-devbuild}" default_net_cidr="${DEFAULT_NET:-20.1.1.0/24}" # For local builds, copy the build binaries to the vagrant node, using the vagrant ssh-key -if [ "$install_version" = "contiv-devbuild" ];then +if [ -f "release/${install_version}.tgz" ];then pushd cluster ssh_key=$(CONTIV_KUBEADM=1 vagrant ssh-config contiv-node1 | grep IdentityFile | awk '{print $2}' | xargs) popd diff --git a/scripts/swarm_test.sh b/scripts/swarm_test.sh index 6642261..1236ce6 100644 --- a/scripts/swarm_test.sh +++ b/scripts/swarm_test.sh @@ -16,7 +16,7 @@ popd # Extract and launch the installer mkdir -p release cd release -if [ "$install_version" != "contiv-devbuild" ];then +if [ ! -f "${install_version}.tgz" ];then # For release builds, get the build from github releases curl -L -O https://github.com/contiv/install/releases/download/${BUILD_VERSION}/${install_version}.tgz fi