Skip to content

Commit

Permalink
Update makefile to enable make cbds-dev (#68)
Browse files Browse the repository at this point in the history
* update makefile to support cbds-dev
  • Loading branch information
quinnwai authored Oct 8, 2024
1 parent 85f2eb5 commit 7e20ebd
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ production-context: change-context # Change to the Production context
production production-context: CONTEXT=arn:aws:eks:us-west-2:119548034047:cluster/aced-commons-production

cbds: DEPLOY=cbds
cbds: check-context deploy ## Deploy the cbds commons
cbds-context: change-context # Change to the cbds context
cbds: check-context deploy ## Deploy the cbds production commons
cbds-context: change-context # Change to the cbds production context
cbds cbds-context: CONTEXT=cbds

cbds-dev: DEPLOY=cbds-dev
cbds-dev: check-context deploy ## Deploy the cbds development commons
cbds-dev-context: change-context # Change to the cbds development context
cbds-dev cbds-dev-context: CONTEXT=cbds-dev

context: ## Output the current Kubernetes context
@echo "Current context: $(shell kubectl config current-context)"

Expand Down Expand Up @@ -103,6 +108,12 @@ deploy: check-context check-secrets
-f Secrets/user.yaml \
-f Secrets/fence-config.yaml \
-f Secrets/TLS/gen3-certs.yaml; \
elif [ "$(DEPLOY)" = "cbds-dev" ]; then \
helm upgrade --install local ./helm/gen3 \
-f Secrets/values.yaml \
-f Secrets/user.yaml \
-f Secrets/fence-config.yaml \
-f Secrets/TLS/gen3-certs.yaml; \
else \
helm upgrade --install $(DEPLOY) ./helm/gen3 \
-f Secrets/values.yaml \
Expand Down

0 comments on commit 7e20ebd

Please sign in to comment.