Drone: only rollout image on tag/promotion
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
1d06e9e71b
commit
1973348040
12
.drone.yml
12
.drone.yml
@ -13,6 +13,10 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: node.js build
|
- name: node.js build
|
||||||
@ -33,9 +37,17 @@ steps:
|
|||||||
DOCKER_HOST: tcp://localhost:2375
|
DOCKER_HOST: tcp://localhost:2375
|
||||||
DOCKER_REGISTRY:
|
DOCKER_REGISTRY:
|
||||||
from_secret: DOCKER_REGISTRY
|
from_secret: DOCKER_REGISTRY
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
|
||||||
- name: k8s rollout
|
- name: k8s rollout
|
||||||
image: bitnami/kubectl
|
image: bitnami/kubectl
|
||||||
commands:
|
commands:
|
||||||
- cd deploy && kubectl apply -f .
|
- cd deploy && kubectl apply -f .
|
||||||
- kubectl rollout -n mathy restart deployment/mathy
|
- kubectl rollout -n mathy restart deployment/mathy
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- promote
|
||||||
|
Loading…
Reference in New Issue
Block a user