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 0345477
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/k8s-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit 0345477

Please sign in to comment.