fix: 修复 sed 命令语法
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-03-24 01:03:07 +00:00
parent 709fb0433b
commit 4c163620be

View File

@@ -44,7 +44,7 @@ steps:
cluster: kubernetes cluster: kubernetes
namespace: drone namespace: drone
commands: commands:
- sed -i '' "s|latest|${DRONE_COMMIT_SHA:0:8}|g" k8s/deployment.yaml - 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 - kubectl rollout restart deployment/todo-backend -n drone