GitHub Action for setting context before deploying to Kubernetes clusters.
Action inputs | Description |
---|---|
kubeconfig |
(Required) The K8s kubeconfig |
- name: Set K8s context
uses: ossrs/k8s-set-context-action@v1
with:
kubeconfig: '${{ secrets.KUBECONFIG }}'
- name: Run K8s
run: |-
kubectl cluster-info