Skip to content

Add correct working dir #2

Add correct working dir

Add correct working dir #2

Workflow file for this run

name: Run every minute
on:
push:
branches:
- main
# Uncomment the following line to run the workflow every 5 minutes
# schedule:
# - cron: '5 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN_MEEKROSOFT }}
KOSLI_ORG: meekrosoft
defaults:
run:
working-directory: ./kosli-config-monitoring
steps:
- uses: actions/checkout@v4
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.gcp_credentials }}'
- id: 'get-credentials'
uses: 'google-github-actions/get-gke-credentials@v2'
with:
cluster_name: 'autopilot-cluster-1'
location: 'us-central1'
- id: 'install-kubectl'
uses: azure/setup-kubectl@v3
# The KUBECONFIG env var is automatically exported and picked up by kubectl.
- id: 'get-pods'
run: 'kubectl get nodes'
- name: Set up Python
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: setup kosli
uses: kosli-dev/setup-cli-action@v2
with:
version:
2.8.8
- name: Run a one-line script
run: |
echo "Hello, world!"
kosli version
echo "Kosli is installed"
./all.sh