Skip to content

Commit

Permalink
Deploy service-account.json to GAE
Browse files Browse the repository at this point in the history
  • Loading branch information
valendesigns committed Mar 1, 2019
1 parent 6224f9d commit 20ec187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ api.deploy.sql:

# Deploy the API to Google App Engine.
api.deploy.app: api.tpl
@cd service/api && gcloud app deploy --promote --stop-previous-version app.yaml cron.yaml && cd --
@cp service-account.json service/api/service-account.json \
@cd service/api && gcloud app deploy --promote --stop-previous-version app.yaml cron.yaml && cd -- \
@rm service/api/service-account.json

# Deploy the Google Cloud Memorystore Redis instance.
api.deploy.redis: config
Expand Down
1 change: 1 addition & 0 deletions service/api/tpl/app.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ env_variables:
GCF_QUEUE_LH: ${GCF_QUEUE_LH}
GCF_QUEUE_PHPCS: ${GCF_QUEUE_PHPCS}
GCP_PROJECT: ${GCP_PROJECT}
GOOGLE_APPLICATION_CREDENTIALS: "/service-account.json"

skip_files:
- docker/
Expand Down

0 comments on commit 20ec187

Please sign in to comment.