Drone: only rollout image on tag/promotion
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2022-12-03 22:44:56 -06:00
parent 7bd23c4b89
commit a798850b5b

View File

@ -13,10 +13,10 @@ services:
privileged: true privileged: true
environment: environment:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
# when: when:
# event: event:
# - tag - tag
# - promote - promote
steps: steps:
- name: node.js build - name: node.js build
@ -38,16 +38,16 @@ steps:
DOCKER_HOST: tcp://localhost:2375 DOCKER_HOST: tcp://localhost:2375
DOCKER_REGISTRY: DOCKER_REGISTRY:
from_secret: DOCKER_REGISTRY from_secret: DOCKER_REGISTRY
# when: when:
# event: event:
# - tag - tag
# - promote - promote
- name: k8s rollout - name: k8s rollout
image: bitnami/kubectl image: bitnami/kubectl
commands: commands:
- kubectl rollout -n mathy restart deployment/mathy-api - kubectl rollout -n mathy restart deployment/mathy-api
# when: when:
# event: event:
# - tag - tag
# - promote - promote