fix: 改用 kubectl set image 避免权限问题
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -44,8 +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
|
- kubectl set image deployment/todo-backend todo-backend=ccr.ccs.tencentyun.com/violin/todo-backend:${DRONE_COMMIT_SHA:0:8} -n drone
|
||||||
- kubectl apply -f k8s/deployment.yaml
|
|
||||||
- kubectl rollout restart deployment/todo-backend -n drone
|
- kubectl rollout restart deployment/todo-backend -n drone
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user