Use drone namespace
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user