devstack-heat: Do not clone the entire kuryr-k8s
If no github token is used, we resort to cloning. The more patches kuryr has, the longer it takes. That is, unless we limit the cloning depth, then it will only be the size of the latest snapshot. Change-Id: I765be71937f1bf20b99c503a4193ed3de4e71ef2 Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
This commit is contained in:
parent
53efb7493d
commit
c2b81a2adf
|
@ -55,7 +55,7 @@ function _generate_deployment_name() {
|
|||
set -e
|
||||
(>&2 echo "Didn't find a Github token in ENV var DEVSTACK_HEAT_GH_TOKEN. Falling back to cloning repo...")
|
||||
tmpdir=$(mktemp -d)
|
||||
git clone https://git.openstack.org/openstack/kuryr-kubernetes "${tmpdir}/kuryr-kubernetes" > /dev/null
|
||||
git clone --depth 1 https://git.openstack.org/openstack/kuryr-kubernetes "${tmpdir}/kuryr-kubernetes" > /dev/null
|
||||
pushd "${tmpdir}/kuryr-kubernetes" > /dev/null
|
||||
latest_commit=$(git rev-parse HEAD)
|
||||
popd > /dev/null
|
||||
|
|
Loading…
Reference in New Issue