/k8s-set-context-action

GitHub Action for setting context before deploying to Kubernetes clusters

Primary LanguageJavaScriptMIT LicenseMIT

k8s-set-context-action

GitHub Action for setting context before deploying to Kubernetes clusters.

Action inputs

Action inputs Description
kubeconfig (Required) The K8s kubeconfig

Example

- name: Set K8s context
  uses: ossrs/k8s-set-context-action@v1
  with:
    kubeconfig: '${{ secrets.KUBECONFIG }}'

- name: Run K8s
  run: |-
    kubectl cluster-info