https://github.com/ossrs/k8s-set-context-action
GitHub Action for setting context before deploying to Kubernetes clusters
https://github.com/ossrs/k8s-set-context-action
Last synced: 4 months ago
JSON representation
GitHub Action for setting context before deploying to Kubernetes clusters
- Host: GitHub
- URL: https://github.com/ossrs/k8s-set-context-action
- Owner: ossrs
- License: mit
- Created: 2022-01-02T04:22:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-02T07:19:57.000Z (over 3 years ago)
- Last Synced: 2025-01-05T00:44:37.455Z (5 months ago)
- Language: JavaScript
- Homepage: https://discord.gg/yZ4BnPmHAd
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```yaml
- name: Set K8s context
uses: ossrs/k8s-set-context-action@v1
with:
kubeconfig: '${{ secrets.KUBECONFIG }}'- name: Run K8s
run: |-
kubectl cluster-info
```