-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
27 lines (24 loc) · 1008 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
build:
go build .
.PHONY: build
deploy: build
gcloud functions deploy IndexJobs \
--project openshift-gce-devel --runtime go123 \
--service-account search-index-gcs-writer@openshift-gce-devel.iam.gserviceaccount.com \
--memory 128MB --timeout=15s --max-instances=10 \
--trigger-resource origin-ci-test --trigger-event google.storage.object.finalize
.PHONY: deploy
deploy-service-account:
gcloud iam service-accounts create search-index-gcs-writer \
--display-name search-index-gcs-writer \
--description 'Allows ci-search-functions to update elements in the origin-ci-bucket that they own' \
--project openshift-gce-devel
gsutil -m iam ch \
serviceAccount:search-index-gcs-writer@openshift-gce-devel.iam.gserviceaccount.com:objectCreator \
serviceAccount:search-index-gcs-writer@openshift-gce-devel.iam.gserviceaccount.com:objectViewer \
gs://origin-ci-test
.PHONY: deploy-service-account
delete:
gcloud functions delete IndexJobs \
--project openshift-gce-devel
.PHONY: delete