Drone: only build & push container on tag/promote
All checks were successful
continuous-integration/drone Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Garrett Mills 2022-11-29 17:46:00 -06:00
parent ddff22919a
commit fe2ed05271

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
@ -43,16 +43,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:latest image: bitnami/kubectl:latest
commands: commands:
- kubectl rollout restart -n noded deployment/noded-frontend - kubectl rollout restart -n noded deployment/noded-frontend
# when: when:
# event: event:
# - tag - tag
# - promote - promote