attempt to run k8s in gha #3
Workflow file for this run
This file contains 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: run k8s in a github action? | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
execute: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: setup k8s | |
uses: helm/[email protected] | |
- name: Verify k8s | |
run: | | |
kubectl cluster-info | |
kubectl get nodes | |
- name: deploy | |
run: | | |
kubectl apply -k ./deployment/local-dev | |
kubectl wait --for=condition=Ready --timeout=60s deployment/lexbox | |
- name: status | |
if: always() | |
run: kubectl get deployment/lexbox | |