-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
SHELL := /bin/bash
.PHONY: help
.DEFAULT_GOAL := help
ENV_FILE := .env
ifeq ($(filter $(MAKECMDGOALS),config clean),)
ifneq ($(strip $(wildcard $(ENV_FILE))),)
ifneq ($(MAKECMDGOALS),config)
include $(ENV_FILE)
export
endif
endif
endif
help: ## 💬 This help message :)
@grep -E '[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-23s\033[0m %s\n", $$1, $$2}'
infra: ## 🏗️ Create the cloud Infrastructure
@echo -e "\e[34m$@\e[0m" || true
@./scripts/deploy.sh
aso: ## ⚙️ Setup Azure Service Operator
@echo -e "\e[34m$@\e[0m" || true
@./scripts/aso.sh
create_apim_artifacts: ## ⚙️ Create APIM Artifacts
@echo -e "\e[34m$@\e[0m" || true
@./scripts/create_apim_artifacts.sh
add_apim_artifacts: create_apim_artifacts ## ⬆️ Apply APIM Artifacts
@echo -e "\e[34m$@\e[0m" || true
@kubectl apply -f ./apim_artifacts/
remove_apim_artifacts: create_apim_artifacts ## ⬇️ Remove APIM Artifacts
@echo -e "\e[34m$@\e[0m" || true
@kubectl delete -f ./apim_artifacts/