-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (18 loc) · 895 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
export KO_DOCKER_REPO = gcr.io/mammay-labs
.PHONY: deploy-metadata
deploy-metadata:
gcloud run deploy metadata --image=$$(ko publish --preserve-import-paths ./cmd/metadata ) --allow-unauthenticated;
.PHONY: deploy-logging
deploy-logging:
gcloud run deploy logging --image=$$(ko publish --preserve-import-paths ./cmd/structuredlogging ) --allow-unauthenticated;
.PHONY: deploy-opentelemetry
deploy-opentelemetry:
gcloud run deploy opentelemetry --image=$$(ko publish --preserve-import-paths ./cmd/opentelemetry ) --allow-unauthenticated;
.PHONY: deploy-ko
deploy-ko:
gcloud builds submit --config ./cmd/ko/cloudbuild.yaml;
.PHONY: setup-ko-gcr
setup-ko-gcr:
git clone [email protected]:GoogleCloudPlatform/cloud-builders-community.git --depth=1;
gcloud builds submit ./cloud-builders-community/ko --config=./cloud-builders-community/ko/cloudbuild.yaml
rm -rf ./cloud-builders-community