Skip to content

Commit

Permalink
Add K8s deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
camuffo committed Oct 11, 2024
1 parent 4077b3d commit c9f240c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/k8s-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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 }}' | base64 -d > "$KUBECONFIG"
- run: "kubectl version"

- name: Deploy to Kubernetes
run: |
helm -n "$NAMESPACE" list

0 comments on commit c9f240c

Please sign in to comment.