Github Action for using the Rancher CLI to manage resources with Rancher during an action.
Commands will be executed using the following syntax: rancher kubectl {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 Action
uses: colbyhill21/[email protected]
with:
args: '"get pods"'
token: ${{ secrets.RANCHER_TOKEN }}
context: ${{ secrets.RANCHER_CONTEXT }}
url: ${{ secrets.RANCHER_URL }}
token
: Rancher Token for logging in.clusterid
: Cluseter ID to access.url
: URL of the Rancher instance.
Scripts and documentation in this project are released under the MIT license.