GitHub Actions Integration
Example: GitHub Actions
Here’s a simplified GitHub Actions workflow to deploy an Nginx application to an HKE cluster using Helm:
name: Deploy to HKEon: push: branches: [main]
jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3
- name: Install Helm uses: azure/setup-helm@v3
- name: Configure Kubectl uses: azure/k8s-set-context@v3 with: kubeconfig: ${{ secrets.KUBECONFIG }}
- name: Deploy with Helm run: | helm repo add bitnami https://charts.bitnami.com/bitnami helm install nginx bitnami/nginx --namespace default \ --values ui/values.yaml # If you have custom values