зеркало из https://github.com/golang/build.git
7eab32633e
go get cloud.google.com/go/pubsub@v1.26.0 go mod tidy This brings in loong64 support. Change-Id: Iff5905f5aa866b240832abf76ce97a4a8763e8f7 Reviewed-on: https://go-review.googlesource.com/c/build/+/453456 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Carlos Amedee <carlos@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org> |
||
---|---|---|
.. | ||
README.md | ||
go.mod | ||
go.sum | ||
wikiwebhook.go | ||
wikiwebhook_test.go |
README.md
golang.org/x/build/cloudfns/wikiwebhook
Package wikiwebhook implements an Google Cloud Function HTTP handler that expects GitHub webhook change events.
Deploying
gcloud functions deploy GitHubWikiChangeWebHook \
--project=symbolic-datum-552 \
--runtime go113 \
--trigger-http \
--set-env-vars="PUBSUB_TOPIC=github.webhooks.golang.go.wiki,GCP_PROJECT=symbolic-datum-552,GITHUB_WEBHOOK_SECRET=$(gcloud --project=symbolic-datum-552 secrets versions access latest --secret=github-webhook-secret)"