diff --git a/.github/workflows/k8s-deploy.yml b/.github/workflows/k8s-deploy.yml new file mode 100644 index 0000000..f901cf5 --- /dev/null +++ b/.github/workflows/k8s-deploy.yml @@ -0,0 +1,34 @@ +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: | + python3 ./create-envfile.py --no-input --hostname development.demo.geonode.org + 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