Drone: k8s rollout from envsubst
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2022-11-29 14:59:32 -06:00
parent f5e1f8eb9b
commit ac883a18dd

View File

@ -34,19 +34,21 @@ steps:
commands:
- microdnf install -y gettext
- cd deploy && mkdir ../deploy-subst && bash -c 'for f in *.yaml; do envsubst < $f > ../deploy-subst/$f; done'
# - name: k8s rollout
# image: bitnami/kubectl
# commands:
# - cd deploy && bash -c 'for f in *.yaml; do envsubst < $f | kubectl apply -f -; done'
# environment:
# NODED_DOMAIN:
# from_secret: NODED_DOMAIN
# NODED_DATABASE_HOST:
# from_secret: NODED_DATABASE_HOST
# NODED_REDIS_HOST:
# from_secret: NODED_REDIS_HOST
# NODED_DATABASE_NAME:
# from_secret: NODED_DATABASE_NAME
environment:
NODED_DOMAIN:
from_secret: NODED_DOMAIN
NODED_DATABASE_HOST:
from_secret: NODED_DATABASE_HOST
NODED_REDIS_HOST:
from_secret: NODED_REDIS_HOST
NODED_DATABASE_NAME:
from_secret: NODED_DATABASE_NAME
# when:
# event: tag
- name: k8s rollout
image: bitnami/kubectl
commands:
- cd deploy-subst && kubectl apply -f .
# when:
# event: tag