Skip to content

Add K8s deploy workflow #3

Add K8s deploy workflow

Add K8s deploy workflow #3

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: "Docker image build"
run: |
docker compose build django --no-cache
#- 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