diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9c3330a..90fdd6f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -42,4 +42,14 @@ jobs: env: COMMIT: ${{ github.sha }} REF: ${{ github.ref }} - TIME: ${{ env.TIME }} \ No newline at end of file + TIME: ${{ env.TIME }} + - name: Reload Deployment + env: + RELOADER_KEY: ${{ secrets.RELOADER_KEY }} + run: | + response=$(curl -s -o /dev/null -w "%{http_code}" -X GET "http://k8s.yyz1.hammy.network:8844/reload/deployments/hamptonmoore" -H "Authorization: ${RELOADER_KEY}") + if [ "$response" -ne 200 ]; then + echo "Failed to reload deployment, server responded with HTTP status $response" + exit 1 + fi + echo "Deployment reloaded successfully" \ No newline at end of file