better usage of env vars

This commit is contained in:
dhirsch1 2023-06-23 18:11:12 +03:00
parent af3810a7da
commit 8d1167776f

View file

@ -38,5 +38,8 @@ build: cluster
deploy: build deploy: build
export RANDOM_PART=$$(hostname | md5sum | cut -c1-30) && \ export RANDOM_PART=$$(hostname | md5sum | cut -c1-30) && \
envsubst < kube/petclinic.yaml.tmpl > kube/petclinic.yaml minikube kubectl -- apply -f kube/postgresql.yaml && \
minikube kubectl apply -f kube envsubst < kube/petclinic.yaml | minikube kubectl -- apply -f -
undeploy:
minikube kubectl -- delete -f kube/