-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (33 loc) · 920 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: kubectl CLI Action
description: Action to run kubectl command by passing kub config file (base64 encoded)
author: teknatha136
branding:
icon: terminal
color: white
inputs:
kubectl-version:
description: kubectl cli version
required: false
default: latest
kube-config:
description: A base64 encoded kube config file.
required: true
runs:
using: composite
steps:
- run: echo "${{ github.action_path }}" >> $GITHUB_PATH
shell: bash
- name: Configure kubectl
run: kubectl-setup.sh
shell: bash
env:
KUBECTL_VERSION: ${{ inputs.kubectl-version }}
- name: Decode kube config file
run: decode-kubeconfig.sh
shell: bash
env:
KUBE_CONFIG: ${{ inputs.kube-config }}
- name: Post Kubectl Run
uses: webiny/[email protected]
with:
run: rm -rf ./kubebin && rm -rf ./.kube && rm ./kubectl.sha256