diff --git a/entrypoint.sh b/entrypoint.sh index a885b9c..4124db6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,7 +6,8 @@ CLUSTER_NAME=$2 SKIP_CLUSTER_CREATION=$3 REPO_URL="https://github.com/rancher/k3d" -K3D_ROOT="/home/runner/work/_temp/_github_home/k3d" +K3D_ROOT="/github/home/k3d" +K3D_HOME="/home/runner/work/_temp/_github_home/k3d" if [ "$K3D_VERSION" = "latest" ]; then K3D_VERSION=$(curl -Ls -o /dev/null -w %{url_effective} "${REPO_URL}/releases/latest" | grep -oE "[^/]+$" ) @@ -22,7 +23,7 @@ chmod a+x "${K3D_ROOT}/bin/k3d" export PATH="${PATH}:${K3D_ROOT}/bin" -echo "${K3D_ROOT}/bin" >> $GITHUB_PATH +echo "${K3D_HOME}/bin" >> $GITHUB_PATH echo "Finished to install k3d." @@ -32,7 +33,7 @@ if [ ! "$SKIP_CLUSTER_CREATION" = "true" ]; then k3d cluster create ${CLUSTER_NAME} k3d kubeconfig get ${CLUSTER_NAME} > "${K3D_ROOT}/k3d.yaml" - echo "KUBECONFIG=${K3D_ROOT}/k3d.yaml" >> $GITHUB_ENV + echo "KUBECONFIG=${K3D_HOME}/k3d.yaml" >> $GITHUB_ENV echo "Finished to create k3d cluster." fi