From 9881f6e8bc9885b67db19cd9b05f4c00e765015c Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Mon, 16 Sep 2024 13:55:41 -0700 Subject: [PATCH] Add automation to reload Kubernetes pod after deployment --- .gitea/workflows/publish.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index b5561ea..1559e88 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -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 \ No newline at end of file + 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 \ No newline at end of file