Skip to content

Commit

Permalink
Reload kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampton Moore committed Jan 16, 2024
1 parent 31eb784 commit f670404
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,14 @@ jobs:
env:
COMMIT: ${{ github.sha }}
REF: ${{ github.ref }}
TIME: ${{ env.TIME }}
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"

0 comments on commit f670404

Please sign in to comment.