move gotd fork into repo. (#111)
- update to latest telegram layer - remove some references to fields in tg.Entities that don't exist in the schema - originally added here: https://github.com/beeper/td/commit/820929062a2ba0104397bc01235ab58a9cff780e - referenced here - https://github.com/mautrix/telegramgo/commit/124f0967ed195b5a380c9bd02e170ada9710dde3 - https://github.com/mautrix/telegramgo/commit/4205047aab2e0639217148b5d125bfaab668bd8e
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
all: connclose
|
||||
|
||||
connclose:
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -buildvcs=false -o connclose .
|
||||
.PHONY: connclose
|
||||
|
||||
image: connclose
|
||||
docker build -t connclose:latest .
|
||||
|
||||
image-load:
|
||||
kind load docker-image connclose:latest
|
||||
|
||||
deploy:
|
||||
kubectl apply -f secret.yml -f deployment.yml -f network.yml -f network.allow.yml
|
||||
|
||||
start:
|
||||
bash start.sh
|
||||
|
||||
down:
|
||||
kind delete cluster
|
||||
|
||||
restart:
|
||||
kubectl rollout restart deployment bot
|
||||
|
||||
update: image image-load restart
|
||||
|
||||
allow:
|
||||
kubectl apply -f network.allow.yml
|
||||
|
||||
deny:
|
||||
kubectl apply -f network.deny.yml
|
||||
|
||||
wait:
|
||||
kubectl rollout status deployment bot
|
||||
|
||||
logs:
|
||||
kubectl logs -l app=bot
|
||||
|
||||
follow:
|
||||
kubectl logs -f -l app=bot
|
||||
|
||||
up: start image image-load deploy wait
|
||||
Reference in New Issue
Block a user