From b9a73a10c1d0de7b3db1889c86d7f009e969b7cd Mon Sep 17 00:00:00 2001 From: Anton Podsekin Date: Wed, 29 Dec 2021 15:41:36 +0300 Subject: [PATCH 1/2] base64 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 4c80cb4..1a18a39 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ runs: image: 'Dockerfile' args: - ${{ inputs.version }} - - ${{ inputs.config }} + - $(echo "${{ inputs.config }}" | base64) - ${{ inputs.command }} branding: icon: 'terminal' From 98316e8228f44a1ce223099db908139874f04c57 Mon Sep 17 00:00:00 2001 From: Anton Podsekin Date: Wed, 29 Dec 2021 15:49:16 +0300 Subject: [PATCH 2/2] base64 --- action.yml | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 1a18a39..4c80cb4 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ runs: image: 'Dockerfile' args: - ${{ inputs.version }} - - $(echo "${{ inputs.config }}" | base64) + - ${{ inputs.config }} - ${{ inputs.command }} branding: icon: 'terminal' diff --git a/entrypoint.sh b/entrypoint.sh index fb9a94d..164cf07 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,7 +17,7 @@ chmod +x kubectl mv kubectl /usr/local/bin # Extract the base64 encoded config data and write this to the KUBECONFIG -echo "$config" | base64 -d > /tmp/config +echo "$config" > /tmp/config export KUBECONFIG=/tmp/config sh -c "kubectl $command"