Skip to content

Commit

Permalink
Kube to restart directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Hampton Moore committed Jan 17, 2024
1 parent 4847a20 commit 70d9cfb
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,8 @@ jobs:
COMMIT: ${{ github.sha }}
REF: ${{ github.ref }}
TIME: ${{ env.TIME }}
- name: Reload Deployment
- uses: actions-hub/kubectl@master
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"
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: rollout restart deployment hamptonmoore

0 comments on commit 70d9cfb

Please sign in to comment.