Skip to content

Enhance HTTP status checks in deployment workflow for better response… #5

Enhance HTTP status checks in deployment workflow for better response…

Enhance HTTP status checks in deployment workflow for better response… #5

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/