mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
better usage of env vars
This commit is contained in:
parent
af3810a7da
commit
8d1167776f
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -38,5 +38,8 @@ build: cluster
|
|||
|
||||
deploy: build
|
||||
export RANDOM_PART=$$(hostname | md5sum | cut -c1-30) && \
|
||||
envsubst < kube/petclinic.yaml.tmpl > kube/petclinic.yaml
|
||||
minikube kubectl apply -f kube
|
||||
minikube kubectl -- apply -f kube/postgresql.yaml && \
|
||||
envsubst < kube/petclinic.yaml | minikube kubectl -- apply -f -
|
||||
|
||||
undeploy:
|
||||
minikube kubectl -- delete -f kube/
|
Loading…
Reference in a new issue