Skip to content

Commit

Permalink
remove binaries in .tmp in down.sh
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Sep 1, 2023
1 parent 11e3c0f commit 2a3df26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/down.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
set -euo pipefail

cluster_name="test-cluster"
dockerfile_path="deployments/k3d"
bin_path="${dockerfile_path}/.tmp/"

teardown_test() {
# delete k3d cluster
k3d cluster delete "$cluster_name"

# delete docker image
docker rmi k3d-shim-test

# delete binaries
rm -r "$bin_path"
}

teardown_test

0 comments on commit 2a3df26

Please sign in to comment.