Drone: k8s rollout from envsubst
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
f5e1f8eb9b
commit
ac883a18dd
30
.drone.yml
30
.drone.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user