fix: dev 自动替换镜像 tag 并重启
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-03-23 15:57:33 +00:00
parent 9567309655
commit 8e47a764b3

View File

@@ -44,7 +44,9 @@ steps:
cluster: kubernetes cluster: kubernetes
namespace: drone namespace: drone
commands: commands:
- sed -i "s|latest|${DRONE_COMMIT_SHA:0:8}|g" k8s/deployment.yaml
- kubectl apply -f k8s/deployment.yaml - kubectl apply -f k8s/deployment.yaml
- kubectl rollout restart deployment/todo-backend -n drone
--- ---
kind: pipeline kind: pipeline