-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (31 loc) · 758 Bytes
/
Makefile
File metadata and controls
36 lines (31 loc) · 758 Bytes
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
30
31
32
33
34
35
36
project ?= webreview
version ?= auto
staging_version ?= staging
file ?= app.yaml
install:
pip install -t lib -r requirements.txt
npm install
./node_modules/.bin/bower install
create-service-account:
gcloud --project=$(project) \
iam service-accounts create \
testing
create-testing-key:
gcloud --project=$(project) \
iam service-accounts keys create \
--iam-account testing@$(project).iam.gserviceaccount.com \
testing/service_account_key.json
deploy:
gcloud app deploy \
-q \
--promote \
--project=$(project) \
--version=$(version) \
$(file)
stage:
gcloud app deploy \
-q \
--no-promote \
--project=$(project) \
--version=$(staging_version) \
$(file)