Skip to content

Rename application to 'hello-world' and add Kubernetes service and St… #7

Rename application to 'hello-world' and add Kubernetes service and St…

Rename application to 'hello-world' and add Kubernetes service and St… #7

Workflow file for this run

name: Deploy with kubectl
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
KUBECONFIG: /tmp/${{ github.run_id }}/kubeconfig
steps:
- uses: actions/checkout@v4
- name: Setup kubectl
uses: azure/setup-kubectl@v4
- name: Write kubeconfig
run: |
mkdir -p "$(dirname "$KUBECONFIG")"
echo "${KUBECONFIG_B64}" | base64 -d > "$KUBECONFIG"
env:
KUBECONFIG_B64: ${{ secrets.KUBECONFIG_B64 }}
- name: Sanity check
run: kubectl get pod
- name: Deploy
run: kubectl apply -f k8s/