fix: 修正.dorne.yml文件格式
This commit is contained in:
parent
23eb91fa4a
commit
711a4f839b
20
.drone.yml
20
.drone.yml
@ -13,16 +13,16 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- docker build -t harbor.picaiba.com/kszny/mes-api:1.0.0-india ./ && docker push harbor.picaiba.com/kszny/mes-api:1.0.0-india
|
- docker build -t harbor.picaiba.com/kszny/mes-api:1.0.0-india ./ && docker push harbor.picaiba.com/kszny/mes-api:1.0.0-india
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: harbor.picaiba.com/tools/kubectl
|
image: harbor.picaiba.com/tools/kubectl
|
||||||
commands:
|
commands:
|
||||||
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
|
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
|
||||||
- sleep 1
|
- sleep 1
|
||||||
- kubectl scale --replicas=0 deployment/mes-api -n mes-india
|
- kubectl scale --replicas=0 deployment/mes-api -n mes-india
|
||||||
- sleep 3
|
- sleep 3
|
||||||
- kubectl scale --replicas=1 deployment/mes-api -n mes-india
|
- kubectl scale --replicas=1 deployment/mes-api -n mes-india
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
Loading…
Reference in New Issue
Block a user