Skip to content
This repository has been archived by the owner. It is now read-only.

danielr1996/kubectl-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubectl Action

I archived this repository because I think there are now more appropriate options like helm and argocd

This action allows you to deploy to a kubernetes cluster.

Alternatives:

Inputs

kubeconfig

Base64 encoded .kube/config file, to generate use:

cat .kube/config | base64

Usage

Kustomize a Deployment

- name: Kustomize
  uses: danielr1996/kubectl-action@1.0.0
  with:
    args: kustomize deployment/overlays/replace > template.yaml

Deploy a Deployment

- uses: danielr1996/kubectl-action@1.0.0
  name: Deploy
  with:
    kubeconfig: ${{ secrets.KUBE_CONFIG }}
    args: apply -f deployment.yaml