2020-05-05 10:07:57 +10:00
2020-05-05 10:07:57 +10:00
2020-05-04 15:02:56 +10:00
2020-05-05 08:45:46 +10:00
2020-05-05 10:07:57 +10:00

kubectl-helm-action

A Github action for using kubectl and helm to deploy applications to Kubernetes cluster

How to use

Set up KUBE_CONFIG_DATA secret

Have your kubeconfig file encrypted

cat $HOME/.kube/config | base64

Store the encrypted string as a secret with name KUBE_CONFIG_DATA, by navigating to your repo -> Settings -> Secrets -> Add a new secret

Config a Github workflow

Create a workflow file .github/workflows/deploy.yaml

on: push
name: deploy
jobs:
  deploy:
    name: deploy to cluster
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: deploy to cluster
      uses: wahyd4/kubectl-helm-action@master
      env:
        KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
      with:
        args: kubectl apply -f manifest.yaml

Thanks

This repo is inspired by steebchen/kubectl, thanks.

S
Description
No description provided
Readme MIT
48 KiB
Languages
Shell 72%
Dockerfile 28%