From 05b4bed034bb6a2ee64d5a5fdacd2e600eef99e9 Mon Sep 17 00:00:00 2001 From: miampf Date: Wed, 14 Feb 2024 15:46:40 +0100 Subject: [PATCH] use terraform plugin cache --- .github/actions/e2e_cleanup_timeframe/e2e-cleanup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/e2e_cleanup_timeframe/e2e-cleanup.sh b/.github/actions/e2e_cleanup_timeframe/e2e-cleanup.sh index dc329a297..eda1dd8d7 100755 --- a/.github/actions/e2e_cleanup_timeframe/e2e-cleanup.sh +++ b/.github/actions/e2e_cleanup_timeframe/e2e-cleanup.sh @@ -67,6 +67,11 @@ for directory in ./terraform-state-*; do unzip -d "${directory}" -P "$artifact_pwd" "$directory/archive.zip" > /dev/null done +# create terraform caching directory +mkdir "$HOME/tf_plugin_cache" +export TF_PLUGIN_CACHE_DIR="$HOME/tf_plugin_cache" +echo "[*] created terraform cache directory $TF_PLUGIN_CACHE_DIR" + echo "[*] deleting resources" for directory in ./terraform-state-*; do echo " deleting resources in $directory"