Github actions to install accuknoxcli, KubeArmor and Discovery Engine
inputs:
# image of kubearmor to be installed
kubearmor-image:
description: 'kubearmor image to be installed'
required: true
default: ""
# image of discovery engine to be installed
discovery-engine-image:
description: 'discovery engine image to be installed'
required: true
default: ""
# workload namespace
workload-namespace:
description: 'workload namespaces'
required: false
default: ""
Steps for using install-action in a workflow yaml file
- Checkout into the repo using checkout action.
- Setting up a k8's cluster.
- Using accuknox-install action install Kubearmor and Discovery Engine.
- name: accuknox-install
uses: accuknox/install-action@v0.1.1
with:
kubearmor-image: v0.11.0
name: learn-accuknox-install-action
on: [push]
jobs:
check-working:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout kubearmor repo
uses: actions/checkout@v3
with:
repository: kubearmor/KubeArmor
ref: main
path: Kubearmor
- name: Setup a Kubernetes environment
run: |
./Kubearmor/contribution/k3s/install_k3s.sh
sudo apt install socat
- name: Install accuknoxcli, KubeArmor and Discovery Engine
uses: accuknox/install-action@v0.1.1