Skip to content

Commit 5a6f2ab

Browse files
mcquinneividito
authored andcommitted
Allow repeated deployments
Using `helm upgrade --install` allows `make deploy` to be run multiple times as changes are made locally
1 parent 100c076 commit 5a6f2ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ all: deploy
1313
deploy:
1414
@echo "Installing dependencies."
1515
@command -v helm >/dev/null 2>&1 || { echo "helm is required but not installed"; exit 1; }
16-
helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version $(PGO_CHART_VERSION)
16+
helm upgrade --install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version $(PGO_CHART_VERSION)
1717
@echo "Adding eoAPI helm repository."
1818
@helm repo add eoapi $(HELM_REPO_URL)
1919
@echo "Installing eoAPI helm chart."
2020
@cd ./helm-chart && \
2121
helm dependency build ./eoapi && \
22-
helm install --namespace eoapi --create-namespace --set gitSha=$$(git rev-parse HEAD | cut -c1-10) eoapi ./eoapi
22+
helm upgrade --install --namespace eoapi --create-namespace --set gitSha=$$(git rev-parse HEAD | cut -c1-10) eoapi ./eoapi
2323

2424
minikube:
2525
@echo "Starting minikube."

0 commit comments

Comments
 (0)