Add automation to reload Kubernetes pod after deployment
All checks were successful
Hugo Publish CI / build-and-deploy (push) Successful in 11s

This commit is contained in:
Eric X. Liu 2024-09-16 13:55:41 -07:00
parent d96148c395
commit 9881f6e8bc

View File

@ -35,6 +35,10 @@ jobs:
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.TOKEN }}
personal_token: ${{ secrets.GIT_PAGES_TOKEN }}
publish_dir: ./public
publish_branch: gitea-pages
- name: Reload Kubernetes pods
run: |
curl -X DELETE https://k8s.local:6443/api/v1/namespaces/hugo/pods/ --header "Authorization: Bearer ${{ secrets.HUGO_K8S_TOKEN }}" --insecure