Use drone namespace

This commit is contained in:
Agent
2026-03-21 01:26:30 +00:00
parent b9c032a3c5
commit 061ccfe2c3

View File

@@ -41,8 +41,8 @@ steps:
- name: deploy-to-k8s - name: deploy-to-k8s
image: ccr.ccs.tencentyun.com/violin/kubectl:latest image: ccr.ccs.tencentyun.com/violin/kubectl:latest
commands: commands:
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n todo-test - kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone
- kubectl rollout status deployment/todo-frontend -n todo-test - kubectl rollout status deployment/todo-frontend -n drone
environment: environment:
KUBECONFIG: KUBECONFIG:
from_secret: kubeconfig from_secret: kubeconfig
@@ -91,8 +91,8 @@ steps:
- name: deploy-to-k8s - name: deploy-to-k8s
image: ccr.ccs.tencentyun.com/violin/kubectl:latest image: ccr.ccs.tencentyun.com/violin/kubectl:latest
commands: commands:
- kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n todo-prod - kubectl set image deployment/todo-frontend todo-frontend=ccr.ccs.tencentyun.com/violin/todo-frontend:${DRONE_COMMIT_SHA} -n drone
- kubectl rollout status deployment/todo-frontend -n todo-prod - kubectl rollout status deployment/todo-frontend -n drone
environment: environment:
KUBECONFIG: KUBECONFIG:
from_secret: kubeconfig from_secret: kubeconfig