Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (28 sloc) 732 Bytes
.PHONY: dependencies
@go mod download
@go mod tidy
.PHONY: dump-env
@envsubst < env.yml.tmpl > env.yml
.PHONY: deploy
deploy: deploy-webhook deploy-pubsub
.PHONY: deploy-webhook
deploy-webhook: dependencies dump-env
@gcloud functions deploy $(GCLOUD_LINE_WEBHOOK_FUNCTION_NAME) \
--entry-point WebhookHandler \
--trigger-http \
--runtime go113 \
--memory 128MB \
--source . \
.PHONY: deploy-pubsub
deploy-pubsub: dependencies dump-env
@gcloud functions deploy $(GCLOUD_DRIVE_UPLOAD_FUNCTION_NAME) \
--entry-point HandlePubSub \
--trigger-topic="${GCP_PUBSUB_TOPIC}" \
--runtime go113 \
--memory 128MB \
--source . \
You can’t perform that action at this time.