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