From 03e0ef65040ebc5cd2c4e27cd886171486494374 Mon Sep 17 00:00:00 2001 From: Skydust Date: Sat, 7 Dec 2024 16:02:06 +0100 Subject: [PATCH] Passing through the kube config --- action.yml | 2 ++ entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 269c6a6..59c9767 100644 --- a/action.yml +++ b/action.yml @@ -11,3 +11,5 @@ inputs: runs: using: docker image: Dockerfile + env: + KUBERNETES_BASE64_CONF: "${{ secrets.KUBERNETES_BASE64_CONF }}" diff --git a/entrypoint.sh b/entrypoint.sh index db3fac0..45b3fb5 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ INPUT_DEPLOYMENT_NAME=$deploymentName set -e -env + echo "Searching kubectl rights in env: KUBERNETES_BASE64_CONF" if [[ -z "$KUBERNETES_BASE64_CONF" ]]; then echo "No kubernetes config found."