Github Action for using the Rancher CLI to manage resources with Rancher during an action.
Commands will be executed using the following syntax: rancher {Supplied-Command}
A simple workflow file for simply listing the pods in a context is given below:
jobs:
rancher_job:
runs-on: ubuntu-latest
steps:
- name: Rancher CLI Action
uses: roulianinc/[email protected]
with:
command: kubectl get pods -n warlock --insecure-skip-tls-verify
token: ${{ secrets.RANCHER_TOKEN }}
context: ${{ secrets.RANCHER_CONTEXT }}
url: ${{ secrets.RANCHER_URL }}
token: Rancher Token for logging in.context: Context of the project to access. (AKA Project ID)url: URL of the Rancher instance.command: Command you want to run.Scripts and documentation in this project are released under the MIT license.
Content type
Image
Digest
Size
103 MB
Last updated
almost 6 years ago
docker pull glacier3/rancher-cli