obch/.github/workflows/setup-cluster.yml

38 lines
755 B
YAML

name: Setup cluster
on:
push:
paths-ignore:
- '**.md'
branches:
- '**'
pull_request:
paths-ignore:
- '**.md'
branches:
- '**'
workflow_dispatch:
jobs:
setup-cluster:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install podman
run: sudo apt install podman -y
- name: Start minikube
id: minikube
uses: medyagh/setup-minikube@latest
- name: kubectl
run: kubectl get pods -A -o wide
- shell: bash
env:
TOKEN: ${{ secrets.GITEA_TOKEN }}
run: |
GITEA_TOKEN="$TOKEN" ./run.sh
- name: kubectl
run: |
kubectl get pods -A -o wide && \
kubectl get helmrelease -A