Kosli report #4593
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kosli report | |
on: | |
schedule: | |
- cron: '*/5 * * * *' | |
workflow_dispatch: | |
env: | |
KOSLI_ORG: kosli-public | |
KOSLI_API_TOKEN: "${{ secrets.KOSLI_API_TOKEN_PUBLIC }}" | |
jobs: | |
report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up kubeconfig | |
run: | | |
mkdir -p ~/.kube | |
echo "${{ secrets.KUBECONFIG }}" > ~/.kube/config | |
- name: Setup Kosli cli | |
uses: kosli-dev/setup-cli-action@v2 | |
with: | |
version: | |
${{ vars.KOSLI_CLI_VERSION }} | |
- name: Kosli report staging | |
run: | | |
kosli snapshot k8s jenkins-java-example-staging -n staging | |
- name: Kosli report production | |
run: | | |
kosli snapshot k8s jenkins-java-example-prod -n production |