A GitHub Action for installing and using Camel K.
Create a workflow YAML file in your .github/workflows
directory. An example workflow is available below.
For more information, reference the GitHub Help Documentation for Creating a workflow file.
For more information on inputs, see the API Documentation
version
: The Camel K version to use (default:latest
)github_token
: Optional token used when fetching the latest Camel K release to avoid hitting rate limits (you should set it to${{ secrets.GITHUB_TOKEN }}
)
Create a workflow (eg: .github/workflows/create-cluster.yml
):
name: Camel K
on: pull_request
jobs:
camel-k:
runs-on: ubuntu-latest
steps:
- name: Camel K CLI
uses: container-tools/camel-k-action@v1
This uses @container-tools/camel-k-action GitHub Action to install the Camel K CLI binaries.