-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
54 lines (50 loc) · 1.47 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: accuknox-install
description: 'Install accuknox-cli, kubearmor and discovery engine '
inputs:
kubearmor-image:
description: 'kubearmor image to be installed'
required: true
default: ""
discovery-engine-image:
description: 'discovery engine image to be installed'
required: true
default: ""
workload-namespace:
description: 'workload namespaces'
required: false
default: ""
runs:
using: "composite"
steps:
- name: Checkout accuknox-cli repo and install kubearmor and discovery engine
uses: actions/checkout@v3
with:
repository: rajaSahil/accuknox-cli
ref: feat-report
path: accuknox-cli
- name: Install accuknox-cli, KubeArmor and Discovery Engine
run: |
cd accuknox-cli
chmod +x accuknox-cli
sudo mv accuknox-cli /usr/bin/
accuknox-cli version
accuknox-cli install
# make install
# accuknox-cli version
#
# setupArgs=""
# if [ "${{ inputs.kubearmor-image }}" != "" ]; then
# setupArgs+= " -i ${{ inputs.kubearmor-image }}"
# fi
# if [ "${{ inputs.discovery-engine-image }}" != "" ];then
# setupArgs += " -di ${{ inputs.discovery-engine-image }}"
# fi
# if [ "${{ inputs.workload-namespace }}" != "" ];then
# setupArgs += " -n ${{ inputs.workload-namespace }}"
# fi
#
# accuknox-cli install $setupArgs
shell: bash
branding:
icon: 'shield'
color: 'blue'