kubectl & helm
ActionsA Github action for using kubectl and helm to deploy applications to Kubernetes cluster
v0.1.1
By wahyd4
Tags
(2)A Github action for using kubectl and helm to deploy applications to Kubernetes cluster
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
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
This repo is inspired by steebchen/kubectl, thanks.
kubectl & helm is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.