Skip to content

Commit

Permalink
Allow repeated deployments
Browse files Browse the repository at this point in the history
Using `helm upgrade --install` allows `make deploy` to be run multiple times as changes are made locally
  • Loading branch information
mcquinne authored and ividito committed Jan 2, 2025
1 parent 100c076 commit 5a6f2ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ all: deploy
deploy:
@echo "Installing dependencies."
@command -v helm >/dev/null 2>&1 || { echo "helm is required but not installed"; exit 1; }
helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version $(PGO_CHART_VERSION)
helm upgrade --install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version $(PGO_CHART_VERSION)
@echo "Adding eoAPI helm repository."
@helm repo add eoapi $(HELM_REPO_URL)
@echo "Installing eoAPI helm chart."
@cd ./helm-chart && \
helm dependency build ./eoapi && \
helm install --namespace eoapi --create-namespace --set gitSha=$$(git rev-parse HEAD | cut -c1-10) eoapi ./eoapi
helm upgrade --install --namespace eoapi --create-namespace --set gitSha=$$(git rev-parse HEAD | cut -c1-10) eoapi ./eoapi

minikube:
@echo "Starting minikube."
Expand Down

0 comments on commit 5a6f2ab

Please sign in to comment.