File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ set -euo pipefail
66
77export CLUSTER_PREFIX=" ${CLUSTER_PREFIX-k8test} "
88
9- if ! test -f k8test/cluster/inventory.yml ; then
10- exit 0
11- fi
9+ # Make sure the k8test/helpers/release-set CLI is available
10+ source helpers/run-in-test-cluster
11+ ensure-k8test > /dev/null
1212
1313k8test/playbooks/destroy-cluster.yml \
1414 -i k8test/cluster/inventory.yml \
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ function ensure-k8test() {
1919 # on the runners and cloning via SSH does not work.
2020 #
2121 # Therefore we run a separate install block that is only meant for GitHub.
22- if [[ " ${GITHUB_ACTIONS:- } " == " true" ]]; then
22+ if [[ " ${GITHUB_ACTIONS:- } " == " true" ]] then
23+ if test -d k8test; then
24+ source k8test/venv/bin/activate
25+ return
26+ fi
27+
2328 mkdir -p ~ /.ssh/ && touch ~ /.ssh/known_hosts
2429 git clone https://github.com/cloudscale-ch/k8test
2530 python3 -m venv k8test/venv
You can’t perform that action at this time.
0 commit comments