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:
parent
c52adc8a9e
commit
beb40cf625
1 changed files with 2 additions and 0 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue