-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
41 lines (39 loc) · 1.47 KB
/
action.yaml
File metadata and controls
41 lines (39 loc) · 1.47 KB
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
35
36
37
38
39
40
41
---
name: Setup Kubernetes Tools
description: This action sets up Kubernetes tools
inputs:
kubectl-version:
description: The version of kubectl
kuttl-version:
description: The version of kubectl-kuttl
helm-version:
description: The version of helm
runs:
using: composite
steps:
# We technically don't need to install kubectl, kind or helm because it is already part of the installed
# tools of the runner image, but we at least install kubectl and helm explicitly, to be able to pin the versions.
# See https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-kubernetes-tools.sh
- name: Install kubectl
if: inputs.kubectl-version
env:
KUBECTL_VERSION: ${{ inputs.kubectl-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_kubectl.sh"
- name: Install kubectl-kuttl
if: inputs.kuttl-version
env:
KUTTL_VERSION: ${{ inputs.kuttl-version }}
GITHUB_DEBUG: ${{ runner.debug }}
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_kubectl_kuttl.sh"
- name: Install Helm
if: inputs.helm-version
env:
HELM_VERSION: ${{ inputs.helm-version }}
GITHUB_DEBUG: ${{ runner.debug }}
# The signature is expired since a couple of years...
VERIFY_SIGNATURE: "false"
shell: bash
run: "$GITHUB_ACTION_PATH/../.scripts/actions/install_helm.sh"