upload newest operator image to kind

This commit is contained in:
Sergey Dudoladov 2019-05-02 15:20:49 +02:00
parent 8352abe428
commit 777ee682f3
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ kind create cluster --name ${cluster_name} --config ./e2e/kind-config-smoke-test
export KUBECONFIG="$(kind get kubeconfig-path --name=${cluster_name})"
kubectl cluster-info
version=$(git describe --tags --always --dirty)
kind load docker-image "registry.opensource.zalan.do/acid/postgres-operator:${version}" --name ${cluster_name}
image=$(docker images --filter=reference="registry.opensource.zalan.do/acid/postgres-operator" --format "{{.Repository}}:{{.Tag}}" | head -1)
kind load docker-image ${image} --name ${cluster_name}
python3 -m unittest discover --start-directory e2e/tests/ &&
kind delete cluster --name ${cluster_name}