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

This commit is contained in:
Garrett Mills 2022-11-29 11:46:44 -06:00
parent aeb37d711b
commit cae9a1acbe

View File

@ -13,6 +13,8 @@ services:
privileged: true privileged: true
environment: environment:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
when:
event: tag
steps: steps:
- name: typedoc build - name: typedoc build
@ -33,12 +35,18 @@ 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
status: success
- name: k8s rollout - name: k8s rollout
image: bitnami/kubectl image: bitnami/kubectl
commands: commands:
- cd docs/deploy && kubectl apply -f . - cd docs/deploy && kubectl apply -f .
- kubectl rollout restart -n extollo deployment/docs - kubectl rollout restart -n extollo deployment/docs
when:
event: tag
status: success
--- ---
kind: pipeline kind: pipeline