Skip to content

Add K8s deploy workflow #2

Add K8s deploy workflow

Add K8s deploy workflow #2

Workflow file for this run

name: Deploy to Kubernetes
on:
push:
branches: ["development", "k8s-deploy"]
pull_request:
branches: ["development"]
jobs:
deploy:
env:
NAMESPACE: "gn-demo-dev"
KUBECONFIG: "${{ github.workspace }}/.kube/config"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: "Write to $KUBECONFIG"
run: |
mkdir -p '${{ github.workspace }}/.kube' \
&& echo '${{ secrets.K8S_CONFIG }}' > "$KUBECONFIG"
- run: "kubectl version"
- name: Deploy to Kubernetes
run: |
helm -n "$NAMESPACE" list