-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
30 lines (22 loc) · 862 Bytes
/
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
.PHONY: create-configmap create-secret build-image apply-manifests clear all server
create-configmap:
kubectl create configmap tbls-schemas --from-file=schemas/config.yml
create-secret:
kubectl create secret generic tbls-ask-agent-slack \
--from-literal=slack-app-token=$$SLACK_APP_TOKEN \
--from-literal=slack-oauth-token=$$SLACK_OAUTH_TOKEN \
--from-literal=github-token=$$GITHUB_TOKEN \
--from-literal=openai-api-key=$$OPENAI_API_KEY \
--from-literal=gemini-api-key=$$GEMINI_API_KEY
build-image:
docker build -t tbls-ask-agent-slack:latest .
apply-manifests:
kubectl apply -f manifests/deployment.yml
clear:
kubectl delete configmap tbls-schemas
kubectl delete secret tbls-ask-agent-slack
kubectl delete -f manifests/deployment.yml
all: create-configmap create-secret apply-manifests
# For local development
server:
go run main.go server