Skip to content

Commit

Permalink
🐛 fix path
Browse files Browse the repository at this point in the history
Signed-off-by: Rintaro Okamura <[email protected]>
  • Loading branch information
rinx committed Oct 26, 2020
1 parent 3e17bf0 commit 929f9af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[^/]+$" )
Expand All @@ -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."

Expand All @@ -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

0 comments on commit 929f9af

Please sign in to comment.