GitHub action for k8s clusters by kubectl
commands.
Required the command to execute.
KUBECONFIG_DATA contents of ~/.kube/config
file as part for organization or project secrets
Result output of the executed kubectl
command.
name: Deploy MinIO
on:
- push
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Trigger MinIO deployment
uses: minio/k8s-action@master
env:
KUBECONFIG_DATA: ${{ secrets.KUBECONFIG_DATA }}
with:
kubectl_args: apply -f statefulset.yaml