Skip to content

Github Action for using the Rancher CLI to manage resources with Rancher.

License

Notifications You must be signed in to change notification settings

TimVanMourik/Rancher-Action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rancher-Action

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}

Usage

Example Workflow file

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: timvanmourik/Rancher-Action@0.0
        with:
          args: '"get pods"'
          token: ${{ secrets.RANCHER_TOKEN }}
          context: ${{ secrets.RANCHER_CONTEXT }}
          url: ${{ secrets.RANCHER_URL }}

Inputs

  • token: Rancher Token for logging in.
  • context: Context of the project to access. (AKA Project ID)
  • url: URL of the Rancher instance.
  • args: Command you want to run.

License

Scripts and documentation in this project are released under the MIT license.

About

Github Action for using the Rancher CLI to manage resources with Rancher.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 74.9%
  • Shell 25.1%