Add rollout restart to deployment workflow

Force k3s to pull the latest image by adding rollout restart
after setting the image. This ensures the cluster always runs
the most recent build even when using the :latest tag.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Graham McIntire 2025-07-24 19:46:05 -05:00
parent c52adc8a9e
commit beb40cf625
No known key found for this signature in database

View file

@ -65,6 +65,8 @@ jobs:
- name: Deploy to K3s
run: |
kubectl set image deployment/aprs aprs=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest -n aprs
# Force a rollout to ensure latest image is pulled
kubectl rollout restart deployment/aprs -n aprs
- name: Wait for rollout
run: |