Skip to content

qgxpagamentos/kubectl-set

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

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Github Action for Kubernetes CLI

Essa Action disponibiliza o comando kubectl para Github Actions.

Uso

.github/workflows/push.yml

on: push
name: deploy
jobs:
  deploy:
    name: deploy to cluster
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Install kubectl
        uses: qgxpagamentos/kubectl-set@v1
        with:
          base64-kube-config: ${{ secrets.KUBE_CONFIG_DATA }}
          kubectl-version: v1.22.5

      - name: Deploy Kubernetes cluster Service/Deployment
        run: |
          kubectl version
          kubectl apply -f deployment/kubernetes

Secrets

KUBE_CONFIG_DATArequerido: Um arquivo kubeconfig base64-encoded com as credenciais necessárias para o K8s acessar o cluster. Exemplo de como gerar o arquivo base64-encoded:

cat $HOME/.kube/config | base64

Inspiration

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages