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