Add K8s deploy workflow #2
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: 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 |