Drone: start env subst
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Garrett Mills 2022-11-29 14:46:00 -06:00
parent e4bc2ea31b
commit 96e44686f4

View File

@ -29,18 +29,23 @@ steps:
# when:
# event: tag
- name: k8s rollout
image: bitnami/kubectl
- name: environment substitution
image: rockylinux:9.0-minimal
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
- microdnf install -y envsubst
# - 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
# when:
# event: tag