Passing through the kube config

This commit is contained in:
2024-12-07 16:02:06 +01:00
parent 63a1d3df54
commit 03e0ef6504
2 changed files with 3 additions and 1 deletions

View File

@@ -11,3 +11,5 @@ inputs:
runs: runs:
using: docker using: docker
image: Dockerfile image: Dockerfile
env:
KUBERNETES_BASE64_CONF: "${{ secrets.KUBERNETES_BASE64_CONF }}"

View File

@@ -3,7 +3,7 @@
INPUT_DEPLOYMENT_NAME=$deploymentName INPUT_DEPLOYMENT_NAME=$deploymentName
set -e set -e
env
echo "Searching kubectl rights in env: KUBERNETES_BASE64_CONF" echo "Searching kubectl rights in env: KUBERNETES_BASE64_CONF"
if [[ -z "$KUBERNETES_BASE64_CONF" ]]; then if [[ -z "$KUBERNETES_BASE64_CONF" ]]; then
echo "No kubernetes config found." echo "No kubernetes config found."