-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (17 loc) · 974 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
deploy-fixer:
docker-compose push toshl-fixer
gcloud run deploy toshl-fixer --image gcr.io/toshl-fixer/toshl-fixer:latest
deploy-classifier:
docker push gcr.io/toshl-fixer/expense-classifier:latest # since I don't build this image in the compose file, it doesn't want to push it apparently
gcloud run deploy expenses-classifier --image gcr.io/toshl-fixer/expense-classifier:latest
deploy-all: deploy-classifier deploy-fixer
run-service:
gcloud scheduler jobs run toshl-fixer-tag
logs-fixer:
gcloud logging read "resource.type=cloud_run_revision AND resource.labels.service_name=toshl-fixer" \
--project toshl-fixer --limit 30 --order desc --format "value(textPayload)" | tac
logs-classifier:
gcloud logging read "resource.type=cloud_run_revision AND resource.labels.service_name=expenses-classifier" \
--project toshl-fixer --limit 30 --order desc --format "value(textPayload)" | tac
logs-all: logs-classifier logs-fixer
update: deploy-all run-service